]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: allocate enough space for bucket instance id
authorYehuda Sadeh <yehuda@inktank.com>
Mon, 16 Jun 2014 18:48:24 +0000 (11:48 -0700)
committerSage Weil <sage@inktank.com>
Thu, 26 Jun 2014 23:06:35 +0000 (16:06 -0700)
commit5f66a2c99fdef2c8d609126740ca790ce10e67a4
treeb0644a0fa112c46ad2ec5d1903389bfa0c4e877f
parent291d448478360a1be0a9826ada58c94ecd643ad0
rgw: allocate enough space for bucket instance id

Fixes: #8608
Backport: dumpling, firefly
Bucket instance id is a concatenation of zone name, rados instance id,
and a running counter. We need to allocate enough space to account zone
name length.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit d2e86a66ca55685e04ffbfaa58452af59f381277)
src/rgw/rgw_rados.cc