diff --git a/src/inc/tsdb.h b/src/inc/tsdb.h index 1190dc8420fe360a667c2d932cfc8a20e4321015..bc3caf8fa65afee52dd3b299c6f810c43e7be872 100644 --- a/src/inc/tsdb.h +++ b/src/inc/tsdb.h @@ -182,7 +182,7 @@ extern "C" { #define TSDB_MAX_AVG_BLOCKS 2048 #define TSDB_DEFAULT_AVG_BLOCKS 4 -#define TSDB_MIN_TABLES_PER_VNODE 1 +#define TSDB_MIN_TABLES_PER_VNODE 2 #define TSDB_MAX_TABLES_PER_VNODE 220000 #define TSDB_MAX_JOIN_TABLE_NUM 5 diff --git a/src/system/detail/src/vnodeShell.c b/src/system/detail/src/vnodeShell.c index 3d0b9eb51fdf076834973f1b9abf0f660177b5a7..ce1cabe1415c37173b3db1a1d3cc138b7cbef6f7 100644 --- a/src/system/detail/src/vnodeShell.c +++ b/src/system/detail/src/vnodeShell.c @@ -502,7 +502,7 @@ static int vnodeCheckSubmitBlockContext(SShellSubmitBlock *pBlocks, SVnodeObj *p uint64_t uid = htobe64(pBlocks->uid); if (sid >= pVnode->cfg.maxSessions || sid <= 0) { - dError("vid:%d sid:%d, sid is out of range", sid); + dError("vid:%d sid:%d, sid is out of range", pVnode->vnode, sid); return TSDB_CODE_INVALID_TABLE_ID; }