]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/newstore: queue kv transactions in kv_sync_thread
authorSage Weil <sage@redhat.com>
Sat, 2 May 2015 00:22:57 +0000 (17:22 -0700)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:42 +0000 (13:39 -0400)
commit92979d750b6021726b9364a7a7c0925002009f76
tree0cd92e278ba485cfb98868f349665dca6d044075
parent22a6a9f7681bbbafd46c36623aea8e467bb7d593
os/newstore: queue kv transactions in kv_sync_thread

It appears that db->submit_transaction() will block if there is a sync
commit that is in progress instead of simply queueing the new txn for
later.  To work around this, submit these to the backend in the
kv_sync_thread prior to the synchronous submit_transaction_sync().

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/newstore/NewStore.cc