summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vlibapi/api_shared.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/vlibapi/api_shared.c b/src/vlibapi/api_shared.c
index 18eb83b68b7..355be35c677 100644
--- a/src/vlibapi/api_shared.c
+++ b/src/vlibapi/api_shared.c
@@ -480,10 +480,15 @@ msg_handler_internal (api_main_t * am,
} *ed;
ed = ELOG_DATA (am->elog_main, e);
if (id < vec_len (am->msg_names))
- ed->c = elog_string (am->elog_main, (char *) am->msg_names[id]);
+ {
+ ed->c = elog_string (am->elog_main, (char *) am->msg_names[id]);
+ ed->barrier = !am->is_mp_safe[id];
+ }
else
- ed->c = elog_string (am->elog_main, "BOGUS");
- ed->barrier = !am->is_mp_safe[id];
+ {
+ ed->c = elog_string (am->elog_main, "BOGUS");
+ ed->barrier = 0;
+ }
}
}