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
This commit is part of merge request !11. Comments created here will be created in the context of that merge request.
......@@ -310,7 +310,7 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode {
handler_ = std::make_unique<UploadRequestHandler>(
&handler_, file_service.get(), &completion_queue, file_descriptor);
this->status = ProcessCalls();
if (this->status.GetCode() != StatusCode::SUCCESS) {
if (this->status.GetCode() != StatusCode::EXECUTING) {
return StatusCode::EXECUTING;
}
}
......@@ -357,6 +357,9 @@ auto Transaction::ExecuteAsynchronously() noexcept -> StatusCode {
}
auto Transaction::WaitForIt() const noexcept -> TransactionStatus {
if (this->status.GetCode() != StatusCode::EXECUTING) {
return this->status;
}
bool set_error = false;
auto *responses = this->response->mutable_responses();
std::vector<std::unique_ptr<Entity>> entities;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment