From 25d5c9bbb33b4b5bca9ad3d66a831545dd5b73dd Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Fri, 18 Dec 2020 16:49:37 +0800 Subject: [PATCH] [TD-2464]: validate maxTablesPerVnode and reset to minTablesPerVnode --- src/common/src/tglobal.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/src/tglobal.c b/src/common/src/tglobal.c index 279a2fef04..f007a82f84 100644 --- a/src/common/src/tglobal.c +++ b/src/common/src/tglobal.c @@ -1443,6 +1443,12 @@ int32_t taosCheckGlobalCfg() { tsNumOfCores = 1; } + if (tsMaxTablePerVnode < tsMinTablePerVnode) { + uError("maxTablesPerVnode(%d) < minTablesPerVnode(%d), reset to minTablesPerVnode(%d)", + tsMaxTablePerVnode, tsMinTablePerVnode, tsMinTablePerVnode); + tsMaxTablePerVnode = tsMinTablePerVnode; + } + // todo refactor tsVersion = 0; for (int i = 0; i < 10; i++) { -- GitLab