From: Yan Jun Date: Sat, 2 Jul 2016 05:37:17 +0000 (+0800) Subject: rgw: remove possible duplicate setting X-Git-Tag: ses5-milestone5~160^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d4b9dc6f65bc4e8fd0b5cce3a13b9eb7b6ca21eb;p=ceph.git rgw: remove possible duplicate setting if `ofs == max_head_size`, then `manifest->set_head_size` will run twice Signed-off-by: Yan Jun --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 9e072479cd6b..e6b46dfdc962 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -1955,7 +1955,7 @@ int RGWObjManifest::generator::create_next(uint64_t ofs) uint64_t max_head_size = manifest->get_max_head_size(); - if (ofs <= max_head_size) { + if (ofs < max_head_size) { manifest->set_head_size(ofs); }