summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/lib/src/gf-history-changelog.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-history-changelog.c')
-rw-r--r--xlators/features/changelog/lib/src/gf-history-changelog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/changelog/lib/src/gf-history-changelog.c b/xlators/features/changelog/lib/src/gf-history-changelog.c
index 7b973b674a4..fd92dd7ed0b 100644
--- a/xlators/features/changelog/lib/src/gf-history-changelog.c
+++ b/xlators/features/changelog/lib/src/gf-history-changelog.c
@@ -618,8 +618,8 @@ gf_history_consume (void * data)
curr->retval = 0;
memset (curr->changelog, '\0', PATH_MAX);
- snprintf (thread_name, sizeof(thread_name), "%s%d",
- "clogc", iter + 1);
+ snprintf (thread_name, sizeof(thread_name),
+ "clogc%03hx", ((iter + 1) & 0x3ff));
ret = gf_thread_create (&th_id[iter], NULL,
gf_changelog_consume_wrap, curr,