From: David Zafman Date: Mon, 8 May 2017 18:23:45 +0000 (-0700) Subject: osd: cleanup: Use available get_head() X-Git-Tag: ses5-milestone8~1^2~19^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d5db8c4fd2605cc648d38b57d2d42a204c4237a;p=ceph.git osd: cleanup: Use available get_head() Signed-off-by: David Zafman --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 85b197960a3a..29354a83badd 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -11129,8 +11129,7 @@ uint64_t PrimaryLogPG::recover_primary(uint64_t max, ThreadPool::TPHandle &handl const pg_missing_item& item = missing.get_items().find(p->second)->second; ++p; - hobject_t head = soid; - head.snap = CEPH_NOSNAP; + hobject_t head = soid.get_head(); eversion_t need = item.need;