From: David Zafman Date: Fri, 18 Dec 2015 17:08:19 +0000 (-0800) Subject: osd/OSD: clear_temp_objects() include removal of Hammer temp objects X-Git-Tag: v10.0.3~11^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=10b4a0825d9917b6fdd0d6450640238b78ba05d4;p=ceph.git osd/OSD: clear_temp_objects() include removal of Hammer temp objects Fixes: #13862 Signed-off-by: David Zafman --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 1d0ca9c57f21..5bb26d19b85c 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -2571,7 +2571,8 @@ void OSD::clear_temp_objects() break; vector::iterator q; for (q = objects.begin(); q != objects.end(); ++q) { - if (q->hobj.is_temp()) { + // Hammer set pool for temps to -1, so check for clean-up + if (q->hobj.is_temp() || (q->hobj.pool == -1)) { temps.push_back(*q); } else { break;