Skip to content

Commit

Permalink
Merge pull request #6783 from yuyuyu101/wip-13961
Browse files Browse the repository at this point in the history
osd: KeyValueStore: don't queue NULL context

Reviewed-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Dec 11, 2015
2 parents b2ec53c + e4218a2 commit 1c24b20
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/os/KeyValueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,10 @@ void KeyValueStore::_finish_op(OpSequencer *osr)
if (o->onreadable_sync) {
o->onreadable_sync->complete(0);
}
op_finisher.queue(o->onreadable);
op_finisher.queue(to_queue);
if (o->onreadable)
op_finisher.queue(o->onreadable);
if (!to_queue.empty())
op_finisher.queue(to_queue);
delete o;
}

Expand Down

0 comments on commit 1c24b20

Please sign in to comment.