From: songweibin Date: Sat, 10 Mar 2018 08:30:20 +0000 (+0800) Subject: osd: direct use of 'shard' without repeated calls X-Git-Tag: v13.1.0~581^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20830%2Fhead;p=ceph.git osd: direct use of 'shard' without repeated calls Signed-off-by: songweibin --- diff --git a/src/osd/ECBackend.cc b/src/osd/ECBackend.cc index 3256d7b979d3..321ddb6cd8f5 100644 --- a/src/osd/ECBackend.cc +++ b/src/osd/ECBackend.cc @@ -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);