]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore:reshard-fix wrong shard length 17334/head
authorchenliuzhong <liuzhong.chen@easystack.cn>
Tue, 29 Aug 2017 06:28:01 +0000 (02:28 -0400)
committerchenliuzhong <liuzhong.chen@easystack.cn>
Tue, 29 Aug 2017 10:34:39 +0000 (06:34 -0400)
change fault_range parameter from 'needs_reshard_end' to 'needs_reshard_end-needs_reshard_begin'
be given needs_reshard_end may be out of bounds

Signed-off-by: chenliuzhong <liuzhong.chen@easystack.cn>
src/os/bluestore/BlueStore.cc

index 4cd6f0b86fb41e26e195273a2e5938fce3f6af54..39aeedde151e06ba16457dd637b278a3f32af6d5 100644 (file)
@@ -2133,7 +2133,7 @@ void BlueStore::ExtentMap::reshard(
             << needs_reshard_end << ")" << std::dec << dendl;
   }
 
-  fault_range(db, needs_reshard_begin, needs_reshard_end);
+  fault_range(db, needs_reshard_begin, (needs_reshard_end - needs_reshard_begin));
 
   // we may need to fault in a larger interval later must have all
   // referring extents for spanning blobs loaded in order to have