]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
os/bluestore: avoid overloading of extents during reshard
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 6 Jun 2017 01:16:22 +0000 (09:16 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 6 Jun 2017 02:41:41 +0000 (10:41 +0800)
This is potentially big stuff...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc

index 877cc0a2adb0abbe21d50b75acf7c9f6d3729aed..af3a0a22184083eb3ac47f0a21d6d45a908ba3cd 100644 (file)
@@ -2200,7 +2200,7 @@ void BlueStore::ExtentMap::reshard(
     }
     if (spanning_scan_end > needs_reshard_end) {
       fault_range(db, needs_reshard_end,
-                 spanning_scan_end - needs_reshard_begin);
+                 spanning_scan_end - needs_reshard_end);
     }
     auto sp = sv.begin() + si_begin;
     auto esp = sv.end();