Handling the problem of log database creation failure

This commit is contained in:
slguan 2019-07-11 20:13:54 +08:00
parent 23cbcfe0a5
commit 57b55444c7
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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) {