From 438d9aa152e546b2008ec355b481df71aa1c51a5 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 7 May 2013 16:34:57 -0700 Subject: [PATCH] OSD: snap collections can be ignored on split Signed-off-by: Samuel Just Reviewed-by: Sage Weil --- src/osd/OSD.cc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index f56401f7e09f5..c2a7a61b68a7d 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4951,21 +4951,6 @@ void OSD::split_pgs( i->m_seed, coll_t::make_temp_coll(*i)); } - for (interval_set::iterator k = parent->snap_collections.begin(); - k != parent->snap_collections.end(); - ++k) { - for (snapid_t j = k.get_start(); j < k.get_start() + k.get_len(); - ++j) { - rctx->transaction->create_collection( - coll_t(*i, j)); - rctx->transaction->split_collection( - coll_t(parent->info.pgid, j), - split_bits, - i->m_seed, - coll_t(*i, j)); - } - } - child->snap_collections = parent->snap_collections; parent->split_into( *i, child, -- 2.39.5