]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix data sync notification
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 3 Dec 2015 03:01:29 +0000 (19:01 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:41 +0000 (16:13 -0800)
should send zone id, not zone name

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc

index bc12b441aef2dc9f07933617d213cf5b17bc4e84..5cd3e8c21e1aee6e82f2336c9b635c297fbebf4c 100644 (file)
@@ -2524,7 +2524,7 @@ public:
   int notify_all(map<string, RGWRESTConn *>& conn_map, map<int, set<string> >& shards) {
     rgw_http_param_pair pairs[] = { { "type", "data" },
                                     { "notify", NULL },
-                                    { "source-zone", store->get_zone_params().get_name().c_str() },
+                                    { "source-zone", store->get_zone_params().get_id().c_str() },
                                     { NULL, NULL } };
 
     list<RGWCoroutinesStack *> stacks;
@@ -2807,9 +2807,11 @@ void RGWRados::wakeup_meta_sync_shards(set<int>& shard_ids)
 
 void RGWRados::wakeup_data_sync_shards(const string& source_zone, map<int, set<string> >& shard_ids)
 {
+  ldout(ctx(), 20) << __func__ << ": source_zone=" << source_zone << ", shard_ids=" << shard_ids << dendl;
   Mutex::Locker l(data_sync_thread_lock);
   map<string, RGWDataSyncProcessorThread *>::iterator iter = data_sync_processor_threads.find(source_zone);
   if (iter == data_sync_processor_threads.end()) {
+    ldout(ctx(), 10) << __func__ << ": couldn't find sync thread for zone " << source_zone << ", skipping async data sync processing" << dendl;
     return;
   }