MINOR: tinfo: make thread_set functions return nth group/mask instead of first
thread_set_first_group() and thread_set_first_tmask() were modified
and renamed to instead return the number and mask of the nth group.
Passing zero continues to return the first one, but it will be more
convenient to use this way when building shards.
diff --git a/src/thread.c b/src/thread.c
index 0deb920..af27bbb 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -1311,7 +1311,7 @@
}
/* update the thread_set */
- if (!thread_set_first_group(&new_ts)) {
+ if (!thread_set_nth_group(&new_ts, 0)) {
memprintf(err, "'thread' directive only references non-existing threads");
return -1;
}