]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/kstore: we have flush_txns is to make sure read after write for the same object... 8218/head
authorJames Liu <james.liu@ssi.samsung.com>
Fri, 18 Mar 2016 17:39:44 +0000 (10:39 -0700)
committerJames Liu <james.liu@ssi.samsung.com>
Fri, 18 Mar 2016 17:39:44 +0000 (10:39 -0700)
commitcccf1f0b2c0134705d14acd17eaf9120b60a0467
treeacc4a98c4498a7c6fada7fb3f092644568095872
parent88f61daa93d189d24194883a595131dde9ce6ffd
os/kstore: we have flush_txns is to make sure read after write for the same object. That's the reason why we add _txc_finalize(osr,txc) after we add the
transaction. However, since we did not call STATE_FINISHING at all, The _txf_finish will never be called and flush_txns of object will never be removed.
It will make the read on the same object hanging there forever. We will combine KV_DONE and STATE_FINISHING.

Signed-off-by: James Liu <james.liu@ssi.samsung.com>
src/os/kstore/KStore.cc [changed mode: 0644->0755]