From 7e99efc421d6f6d1cc91cfa4617cfd1138853369 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 18 Jan 2011 13:16:34 -0800 Subject: [PATCH] PG: fix adjust_local_snaps bug current must be removed from to_remove in the loop for the loop to terminate (and not cause a double erasure from snap_collections)! Signed-off-by: Samuel Just --- src/osd/PG.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index af0acd958ff0c..46e01e703e4fc 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -2699,6 +2699,7 @@ void PG::adjust_local_snaps(ObjectStore::Transaction &t, interval_set snapid_t current = to_remove.range_start(); coll_t c(info.pgid, current); t.remove_collection(c); + to_remove.erase(current); snap_collections.erase(current); } write_info(t); -- 2.39.5