]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: handle no current_preiod in is_syncing_bucket_meta 8597/head
authorOrit Wasserman <owasserm@redhat.com>
Thu, 14 Apr 2016 10:05:44 +0000 (12:05 +0200)
committerOrit Wasserman <owasserm@redhat.com>
Thu, 14 Apr 2016 10:13:45 +0000 (12:13 +0200)
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
src/rgw/rgw_rados.cc

index dc2af2907316c4151c5b8cc5343edab05bdd80af..95d4316d6aef16c88f80667756c718e1d506dac4 100644 (file)
@@ -6970,6 +6970,12 @@ bool RGWRados::is_meta_master()
   */
 bool RGWRados::is_syncing_bucket_meta(rgw_bucket& bucket)
 {
+
+  /* no current period  */
+  if (current_period.get_id().empty()) {
+    return false;
+  }
+
   /* zonegroup is not master zonegroup */
   if (!get_zonegroup().is_master) {
     return false;