From b70170018a4d21e67a24e2ee3c58b59a5ea23891 Mon Sep 17 00:00:00 2001 From: slguan Date: Fri, 20 Dec 2019 18:42:53 +0800 Subject: [PATCH 1/2] #586 [TBASE-1330] --- src/inc/tsdb.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/inc/tsdb.h b/src/inc/tsdb.h index 6112b3f552..7c3447d352 100644 --- a/src/inc/tsdb.h +++ b/src/inc/tsdb.h @@ -181,6 +181,10 @@ extern "C" { #define TSDB_MAX_AVG_BLOCKS 2048 #define TSDB_DEFAULT_AVG_BLOCKS 4 +/* + * There is a bug in function taosAllocateId. + * When "create database tables 1" is executed, the wrong sid is assigned, so the minimum value is set to 1. + */ #define TSDB_MIN_TABLES_PER_VNODE 2 #define TSDB_MAX_TABLES_PER_VNODE 220000 From bba2bbf1ab28f5d36e7419b05c5bb658fe5cf2a0 Mon Sep 17 00:00:00 2001 From: slguan Date: Sat, 21 Dec 2019 15:04:06 +0800 Subject: [PATCH 2/2] #586 [TBASE-1330] --- src/inc/tsdb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inc/tsdb.h b/src/inc/tsdb.h index 7c3447d352..347ba49818 100644 --- a/src/inc/tsdb.h +++ b/src/inc/tsdb.h @@ -183,7 +183,7 @@ extern "C" { /* * There is a bug in function taosAllocateId. - * When "create database tables 1" is executed, the wrong sid is assigned, so the minimum value is set to 1. + * When "create database tables 1" is executed, the wrong sid is assigned, so the minimum value is set to 2. */ #define TSDB_MIN_TABLES_PER_VNODE 2 #define TSDB_MAX_TABLES_PER_VNODE 220000