From: Yehuda Sadeh Date: Tue, 30 Jan 2018 23:38:31 +0000 (-0800) Subject: rgw: hold lock while reading sync trace nodes X-Git-Tag: v13.0.2~269^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8f09d3924b86e35efdb280b1492c047956e99945;p=ceph.git rgw: hold lock while reading sync trace nodes Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_sync_trace.cc b/src/rgw/rgw_sync_trace.cc index 5f62c283d46c..2cd2338c6d30 100644 --- a/src/rgw/rgw_sync_trace.cc +++ b/src/rgw/rgw_sync_trace.cc @@ -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;