]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: allocate a larger buffer for full sync omap oid
authorYehuda Sadeh <yehuda@redhat.com>
Tue, 17 Nov 2015 00:22:17 +0000 (16:22 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:35 +0000 (16:13 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_data_sync.cc

index a14929d637975124c6fb511000b65e99f93bcd38..1c179277dbf2d4d6aa3a3aa7ac0774c46dc52208 100644 (file)
@@ -435,7 +435,7 @@ int RGWRemoteDataLog::init_sync_status(int num_shards)
 
 static string full_data_sync_index_shard_oid(const string& source_zone, int shard_id)
 {
-  char buf[datalog_sync_full_sync_index_prefix.size() + 16];
+  char buf[datalog_sync_full_sync_index_prefix.size() + 1 + source_zone.size() + 1 + 16];
   snprintf(buf, sizeof(buf), "%s.%s.%d", datalog_sync_full_sync_index_prefix.c_str(), source_zone.c_str(), shard_id);
   return string(buf);
 }