]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: move txc on_commits assignment into ctor 22382/head
authorSage Weil <sage@redhat.com>
Mon, 21 May 2018 13:24:54 +0000 (08:24 -0500)
committerPrashant D <pdhange@redhat.com>
Mon, 4 Jun 2018 02:25:10 +0000 (22:25 -0400)
commit1b6d5a47bb1d128183d7c192b615263125cf41b9
treefe40f2a707afd00657f605adbf223ccb39f232c2
parent07671fa9d7504cdab0b9bd63a785bade01253d61
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>
(cherry picked from commit efde8d440b482e3fd90c6b60ef5118f408afd0fa)
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h