Handling the problem of log database creation failure
This commit is contained in:
parent
23cbcfe0a5
commit
57b55444c7
|
@ -126,7 +126,7 @@ void dnodeBuildMonitorSql(char *sql, int cmd) {
|
|||
if (cmd == MONITOR_CMD_CREATE_DB) {
|
||||
snprintf(sql, SQL_LENGTH,
|
||||
"create database if not exists %s replica 1 days 10 keep 30 rows 1024 cache 2048 "
|
||||
"ablocks 2 tblocks 32 tables 32 precision us",
|
||||
"ablocks 2 tblocks 32 tables 32 precision 'us'",
|
||||
tsMonitorDbName);
|
||||
} else if (cmd == MONITOR_CMD_CREATE_MT_DN) {
|
||||
snprintf(sql, SQL_LENGTH,
|
||||
|
|
|
@ -396,7 +396,7 @@ bool taosCheckDbName(char *db, char *monitordb) {
|
|||
char *pos = strchr(db, '.');
|
||||
if (pos == NULL) return false;
|
||||
|
||||
return strcmp(pos + 1, monitordb) == 0;
|
||||
return strncasecmp(pos + 1, monitordb, strlen(monitordb)) == 0;
|
||||
}
|
||||
|
||||
bool taosUcs4ToMbs(void *ucs4, int32_t ucs4_max_len, char *mbs) {
|
||||
|
|
Loading…
Reference in New Issue