]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon:Change monitor compact command to run asynchronously
authorpenglaiyxy <penglaiyxy@gmail.com>
Thu, 17 May 2018 10:39:51 +0000 (18:39 +0800)
committerroot <penglaiyxy>
Mon, 21 May 2018 03:03:55 +0000 (23:03 -0400)
commit3c2ed49de98cd2fa4c1c8921e3db8f86aa8748f0
treee464fb72220030882055a7daf2b220568a465b45
parente8f5038f2b960ec91c701b87b5ac1710abb82789
mon:Change monitor compact command to run asynchronously

In monitor message dispatch code, while one command is executing , it must have the dispatch lock. So indeed all command are executing synchronously. If one command is executing for long time, others command must wait.So change the monitor compact command to execute asynchronously.

Fixed: http://tracker.ceph.com/issues/24159
Signed-off-by: brandy penglaiyxy@gmail.com
src/kv/KeyValueDB.h
src/kv/LevelDBStore.cc
src/kv/LevelDBStore.h
src/kv/RocksDBStore.cc
src/kv/RocksDBStore.h
src/mon/Monitor.cc
src/mon/MonitorDBStore.h