]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove possible duplicate setting 10110/head
authorYan Jun <yan.jun8@zte.com.cn>
Sat, 2 Jul 2016 05:37:17 +0000 (13:37 +0800)
committerYan Jun <yan.jun8@zte.com.cn>
Sat, 2 Jul 2016 05:53:08 +0000 (13:53 +0800)
if `ofs == max_head_size`, then `manifest->set_head_size` will run twice

Signed-off-by: Yan Jun <yan.jun8@zte.com.cn>
src/rgw/rgw_rados.cc

index 9e072479cd6bdad51881ce2fbeab8a51b7e0dbf8..e6b46dfdc9623e97ec316c5226a6cd9dfb9683a9 100644 (file)
@@ -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);
   }