]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: move txc on_commits assignment into ctor 22083/head
authorSage Weil <sage@redhat.com>
Mon, 21 May 2018 13:24:54 +0000 (08:24 -0500)
committerSage Weil <sage@redhat.com>
Mon, 21 May 2018 18:32:30 +0000 (13:32 -0500)
commitefde8d440b482e3fd90c6b60ef5118f408afd0fa
tree3334161e8603eb4ea68d55cd9be6b66bd8159d85
parenta4042d51bcf1444350fa21763003e57aca984f87
os/bluestore: move txc on_commits assignment into ctor

This avoids adjusting the oncommits without a lock after the txc is
queued on the sequencer.

This is a bit defensive since the ObjectStore caller doesn't call
flush_commit() at the same time as queue_transaction(), but the could
change in the future.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h