]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
OSD: snap collections can be ignored on split
authorSamuel Just <sam.just@inktank.com>
Tue, 7 May 2013 23:34:57 +0000 (16:34 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 8 May 2013 18:11:51 +0000 (11:11 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc

index f56401f7e09f5b33d9657558ea945b9ed39540d1..c2a7a61b68a7ddc4609497233e32974a2f5ec3f9 100644 (file)
@@ -4951,21 +4951,6 @@ void OSD::split_pgs(
        i->m_seed,
        coll_t::make_temp_coll(*i));
     }
-    for (interval_set<snapid_t>::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,