diff --git a/inc/toolsdef.h b/inc/toolsdef.h index f2a5104b..aaf918b8 100644 --- a/inc/toolsdef.h +++ b/inc/toolsdef.h @@ -223,7 +223,6 @@ int32_t toolsCloseDir(TdDirPtr *ppDir); int64_t atomic_add_fetch_64(int64_t volatile* ptr, int64_t val); int32_t toolsGetNumberOfCores(); -int32_t toolsGetPhysicalMemory(); int64_t toolsGetTimestamp(int32_t precision); void toolsMsleep(int32_t mseconds); diff --git a/src/benchInsert.c b/src/benchInsert.c index 64d0a65b..e2f9853d 100644 --- a/src/benchInsert.c +++ b/src/benchInsert.c @@ -493,7 +493,6 @@ int32_t getVgroupsOfDb(SBenchConn *conn, SDataBase *database) { } #endif // TD_VER_COMPATIBLE_3_0_0_0 - int32_t toolsGetDefaultVGroups() { int32_t cores = toolsGetNumberOfCores(); if (cores < 3 ) { @@ -531,7 +530,7 @@ int geneDbCreateCmd(SDataBase *database, char *command, int remainVnodes) { database->dbName, (-1 != g_arguments->inputted_vgroups)? g_arguments->inputted_vgroups: - min(remainVnodes, toolsGetDefaultVGroups())); + min(remainVnodes, toolsGetNumberOfCores())); } else { n = snprintf(command + dataLen, SHORT_1K_SQL_BUFF_LEN - dataLen, g_arguments->escape_character