From: Yehuda Sadeh Date: Mon, 7 Mar 2016 23:26:21 +0000 (-0800) Subject: rgw: stop async_rados thread first X-Git-Tag: v10.1.0~143^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ecacfe60930c82fdf800f5a79d9bc64175d47b7;p=ceph.git rgw: stop async_rados thread first Need to shut this thread first, so that async callbacks don't occur when we shut down the data/meta sync processors. Signed-off-by: Yehuda Sadeh --- diff --git a/src/mstart.sh b/src/mstart.sh index 0f344ba5d145..0e5d4d322bc9 100755 --- a/src/mstart.sh +++ b/src/mstart.sh @@ -38,7 +38,7 @@ if [ $? -ne 0 ]; then fi pos=`echo $pos | cut -d: -f1` -base_port=$((6800+pos*10)) +base_port=$((6800+pos*20)) export VSTART_DEST=$RUN_ROOT_PATH/$instance export CEPH_PORT=$base_port diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index de53b563b930..f0e15226b5ad 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3065,6 +3065,9 @@ int RGWRados::get_max_chunk_size(rgw_bucket& bucket, uint64_t *max_chunk_size) void RGWRados::finalize() { + if (async_rados) { + async_rados->stop(); + } if (run_sync_thread) { Mutex::Locker l(meta_sync_thread_lock); meta_sync_processor_thread->stop(); @@ -3104,7 +3107,6 @@ void RGWRados::finalize() delete meta_mgr; delete data_log; if (async_rados) { - async_rados->stop(); delete async_rados; } if (use_gc_thread) {