fix bug
This commit is contained in:
parent
b3c74da37a
commit
99c9ebb99b
|
@ -184,11 +184,17 @@ static void *monThreadFunc(void *param) {
|
|||
static void monBuildMonitorSql(char *sql, int32_t cmd) {
|
||||
memset(sql, 0, SQL_LENGTH);
|
||||
|
||||
#ifdef _STORAGE
|
||||
char *keepValue = "30,30,30";
|
||||
#else
|
||||
char *keepValue = "30";
|
||||
#endif
|
||||
|
||||
if (cmd == MON_CMD_CREATE_DB) {
|
||||
snprintf(sql, SQL_LENGTH,
|
||||
"create database if not exists %s replica 1 days 10 keep 30 cache %d "
|
||||
"create database if not exists %s replica 1 days 10 keep %s cache %d "
|
||||
"blocks %d precision 'us'",
|
||||
tsMonitorDbName, TSDB_MIN_CACHE_BLOCK_SIZE, TSDB_MIN_TOTAL_BLOCKS);
|
||||
tsMonitorDbName, keepValue, TSDB_MIN_CACHE_BLOCK_SIZE, TSDB_MIN_TOTAL_BLOCKS);
|
||||
} else if (cmd == MON_CMD_CREATE_MT_DN) {
|
||||
snprintf(sql, SQL_LENGTH,
|
||||
"create table if not exists %s.dn(ts timestamp"
|
||||
|
|
Loading…
Reference in New Issue