Skip to content
Snippets Groups Projects
Verified Commit 8adcd9c3 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: files

parent 8572b83b
No related branches found
No related tags found
1 merge request!11F files
...@@ -310,7 +310,7 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { ...@@ -310,7 +310,7 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode {
handler_ = std::make_unique<UploadRequestHandler>( handler_ = std::make_unique<UploadRequestHandler>(
&handler_, file_service.get(), &completion_queue, file_descriptor); &handler_, file_service.get(), &completion_queue, file_descriptor);
this->status = ProcessCalls(); this->status = ProcessCalls();
if (this->status.GetCode() != StatusCode::SUCCESS) { if (this->status.GetCode() != StatusCode::EXECUTING) {
return StatusCode::EXECUTING; return StatusCode::EXECUTING;
} }
} }
...@@ -357,6 +357,9 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode { ...@@ -357,6 +357,9 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode {
} }
auto Transaction::WaitForIt() const noexcept -> TransactionStatus { auto Transaction::WaitForIt() const noexcept -> TransactionStatus {
if (this->status.GetCode() != StatusCode::EXECUTING) {
return this->status;
}
bool set_error = false; bool set_error = false;
auto *responses = this->response->mutable_responses(); auto *responses = this->response->mutable_responses();
std::vector<std::unique_ptr<Entity>> entities; std::vector<std::unique_ptr<Entity>> entities;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment