]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: only log metadata on metadata master zone 15613/head
authorCasey Bodley <cbodley@redhat.com>
Sat, 10 Jun 2017 22:12:52 +0000 (18:12 -0400)
committerCasey Bodley <cbodley@redhat.com>
Sat, 10 Jun 2017 22:12:54 +0000 (18:12 -0400)
Fixes: http://tracker.ceph.com/issues/20244
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.h

index ca476a2c207fab20a7ffdcc286ff0b42173d4017..24bb8bb3cb12ef8d43b5938069f553dee44de8c9 100644 (file)
@@ -3557,7 +3557,7 @@ public:
   }
 
   bool need_to_log_metadata() {
-    return get_zone().log_meta;
+    return is_meta_master() && get_zone().log_meta;
   }
 
   librados::Rados* get_rados_handle();