diff options
Diffstat (limited to '')
-rw-r--r-- | src/exporting/mongodb/mongodb.c (renamed from exporting/mongodb/mongodb.c) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exporting/mongodb/mongodb.c b/src/exporting/mongodb/mongodb.c index c65f8d4cc..1a278dcbd 100644 --- a/exporting/mongodb/mongodb.c +++ b/src/exporting/mongodb/mongodb.c @@ -285,6 +285,10 @@ void mongodb_connector_worker(void *instance_p) struct mongodb_specific_data *connector_specific_data = (struct mongodb_specific_data *)instance->connector_specific_data; + char threadname[ND_THREAD_TAG_MAX + 1]; + snprintfz(threadname, ND_THREAD_TAG_MAX, "EXPMNG[%zu]", instance->index); + uv_thread_set_name_np(threadname); + while (!instance->engine->exit) { struct stats *stats = &instance->stats; |