]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: fix wrong iteration
authormyoungwon oh <ohmyoungwon@gmail.com>
Mon, 8 Feb 2021 02:59:07 +0000 (11:59 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Mon, 29 Mar 2021 08:10:08 +0000 (17:10 +0900)
last_offset means the last entry to be copied,
so it should be last_offset <= iter->first

Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/osd/PrimaryLogPG.cc

index 8d01780a8053f98c2e1daa6696611c74b3dcb198..e46072a139c704dd890e9ddc5bab9294077a888e 100644 (file)
@@ -9370,7 +9370,7 @@ void PrimaryLogPG::_copy_some_manifest(ObjectContextRef obc, CopyOpRef cop, uint
            << " length: " << length << " pool id: " << oloc.pool
            << " tid: " << tid << dendl;
 
-    if (last_offset < iter->first) {
+    if (last_offset <= iter->first) {
       break;
     }
   }