From edaec9a8361396bd4c12814c16610669694b5b6c Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 19 Dec 2013 14:37:28 -0800 Subject: [PATCH] osd: Fix assert which doesn't apply when compat_mode on Signed-off-by: David Zafman Reviewed-by: Samuel Just --- src/osd/PG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 0ae5b76161cec..98515e5f1408b 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1038,7 +1038,7 @@ bool PG::choose_acting(int& newest_update_osd) if (want == up) { // There can't be any pending backfill if // want is the same as crush map up OSDs. - assert(backfill.empty()); + assert(compat_mode || backfill.empty()); vector empty; osd->queue_want_pg_temp(info.pgid, empty); } else -- 2.39.5