From c0199d3438fa30348805a3c4dfae92946088b98d Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 28 Feb 2011 03:36:18 -0700 Subject: [PATCH] Bug 2720: comment in same line as cache/mem_replacement_policy causes error --- src/repl/heap/store_repl_heap.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/repl/heap/store_repl_heap.cc b/src/repl/heap/store_repl_heap.cc index a75e104afb..5cf1809c63 100644 --- a/src/repl/heap/store_repl_heap.cc +++ b/src/repl/heap/store_repl_heap.cc @@ -336,7 +336,10 @@ createRemovalPolicy_heap(wordlist * args) } /* No additional arguments expected */ - assert(!args); + while (args) { + debugs(81, DBG_IMPORTANT, "WARNING: discarding unknown removal policy '" << args->key << "'"); + args = args->next; + } heap_data->theHeap = new_heap(1000, heap_data->keyfunc); -- 2.47.2