From 33caa2488991c3132912da59a08859320eb3cfd2 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Wed, 4 Apr 2018 16:50:08 +0800 Subject: [PATCH] osd/osd_types: fix ideal lower bound object-id of pg CEPH_NOSNAP is translated into a large unsigned 64-bit integer which is bigger than any valid snap-id. So the ideal smallest object of a specific PG would be a clone of snap-id 0, not a head object. Signed-off-by: xie xingguo --- src/osd/osd_types.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/osd_types.cc b/src/osd/osd_types.cc index ca5ddc0bea3..dac385c25a2 100644 --- a/src/osd/osd_types.cc +++ b/src/osd/osd_types.cc @@ -547,7 +547,7 @@ pg_t pg_t::get_parent() const hobject_t pg_t::get_hobj_start() const { - return hobject_t(object_t(), string(), CEPH_NOSNAP, m_seed, m_pool, + return hobject_t(object_t(), string(), 0, m_seed, m_pool, string()); } -- 2.39.5