]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: cleanup: Use available get_head()
authorDavid Zafman <dzafman@redhat.com>
Mon, 8 May 2017 18:23:45 +0000 (11:23 -0700)
committerDavid Zafman <dzafman@redhat.com>
Fri, 23 Jun 2017 15:02:51 +0000 (08:02 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/osd/PrimaryLogPG.cc

index 85b197960a3a5d28acbf818e5ac23c55d91a6a21..29354a83baddac44dbdf6852e97ab3f8c55f1280 100644 (file)
@@ -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;