From fd77b18c4901fbaffe15282fba98ff604875524a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 13 Jul 2017 12:30:24 +0300 Subject: [PATCH] Remove false debug assertion in avrorouter The asserted value can be false without it being an error. When a table is re-mapped to a different position, there is no guarantee that the previous value has not been reused by another table. --- server/modules/routing/avrorouter/avro_rbr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/server/modules/routing/avrorouter/avro_rbr.c b/server/modules/routing/avrorouter/avro_rbr.c index 88ef0ea5d..4ad688097 100644 --- a/server/modules/routing/avrorouter/avro_rbr.c +++ b/server/modules/routing/avrorouter/avro_rbr.c @@ -146,7 +146,6 @@ bool handle_table_map_event(AVRO_INSTANCE *router, REP_HEADER *hdr, uint8_t *ptr } else { - ss_dassert(router->active_maps[old->id % MAX_MAPPED_TABLES] == old); router->active_maps[old->id % MAX_MAPPED_TABLES] = NULL; table_map_remap(ptr, ev_len, old); router->active_maps[old->id % MAX_MAPPED_TABLES] = old;