From ff88d845a2646b6e34cccce12ff8e9fc80033795 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 18 Aug 2026 17:42:03 +0200 Subject: [PATCH] MINOR: backend: Do not bother stopping if there is only one thread group We forbid sharing idle connection across thread groups if there is per-thread group file descriptor tables, and that will cause an error, but don't bother doing that if after all, there is only one thread group. --- src/cfgparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cfgparse.c b/src/cfgparse.c index ee86a7b5a..bf5d46e39 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2345,9 +2345,10 @@ int check_config_validity() } if ((global.tune.tg_takeover == FULL_THREADGROUP_TAKEOVER) && - (global.tune.options & GTUNE_NO_TG_FD_SHARING)) { + (global.tune.options & GTUNE_NO_TG_FD_SHARING) && + (global.nbtgroups > 1)) { err_code |= ERR_FATAL | ERR_ALERT; - ha_alert("tune.fd.tables per-thread-group is incompatible with tune.idle-pool shared full\n"); + ha_alert("tune.fd.tables per-thread-group is incompatible with tune.idle-pool-shared full\n"); goto out; } pool_head_requri = create_pool("requri", global.tune.requri_len , MEM_F_SHARED); -- 2.47.3