Skip to content

Commit

Permalink
#212: rbox sync does also wait_for_complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jrse committed Nov 22, 2018
1 parent 92ac165 commit 6fcd90c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/storage-rbox/rbox-sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,12 @@ int rbox_sync_finish(struct rbox_sync_context **_ctx, bool success) {
mail_index_view_close(&ctx->sync_view);

for (std::list<librados::AioCompletion *>::iterator it = completions.begin(); it != completions.end(); ++it) {
(*it)->wait_for_complete_and_cb();
struct rbox_storage *s = ctx->rbox->storage;
if (s->config->is_ceph_aio_wait_for_safe_and_cb()) {
(*it)->wait_for_safe_and_cb();
} else {
(*it)->wait_for_complete_and_cb();
}
(*it)->release();
}
}
Expand Down

0 comments on commit 6fcd90c

Please sign in to comment.