]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: fix ideal lower bound object-id of pg 21235/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Wed, 4 Apr 2018 08:50:08 +0000 (16:50 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 4 Apr 2018 08:50:08 +0000 (16:50 +0800)
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 <xie.xingguo@zte.com.cn>
src/osd/osd_types.cc

index ca5ddc0bea3ccd339efe75b97cfb9762c4a62b9e..dac385c25a264875d62462a14884b857003924c3 100644 (file)
@@ -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());
 }