]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: direct use of 'shard' without repeated calls 20830/head
authorsongweibin <song.weibin@zte.com.cn>
Sat, 10 Mar 2018 08:30:20 +0000 (16:30 +0800)
committersongweibin <song.weibin@zte.com.cn>
Sat, 10 Mar 2018 08:30:20 +0000 (16:30 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/osd/ECBackend.cc

index 3256d7b979d366f443f85f5d86bcda3b6cab63a3..321ddb6cd8f5357187dc3ffc9bb9c98cf16fbef0 100644 (file)
@@ -1039,7 +1039,7 @@ error:
     int r = store->getattrs(
       ch,
       ghobject_t(
-       *i, ghobject_t::NO_GEN, get_parent()->whoami_shard().shard),
+       *i, ghobject_t::NO_GEN, shard),
       reply->attrs_read[*i]);
     if (r < 0) {
       reply->buffers_read.erase(*i);