]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: hold lock while reading sync trace nodes
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 30 Jan 2018 23:38:31 +0000 (15:38 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Wed, 31 Jan 2018 00:52:07 +0000 (16:52 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_sync_trace.cc

index 5f62c283d46cc8e056f431e29b903c92fbaaa681..2cd2338c6d30ba08c60ae6456e3dc00c709252c4 100644 (file)
@@ -169,6 +169,8 @@ static void dump_node(RGWSyncTraceNode *entry, bool show_history, JSONFormatter&
 
 string RGWSyncTraceManager::get_active_names()
 {
+  shunique_lock rl(lock, ceph::acquire_shared);
+
   stringstream ss;
   JSONFormatter f;