Merge pull request #25561 from taosdata/fix/TD-29727-2

Fix/TD-29727-2
This commit is contained in:
Hongze Cheng 2024-04-29 10:03:41 +08:00 committed by GitHub
commit c9415f5f85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ bool checkColumnCompressOrSetDefault(uint8_t type, char compress[TSDB_CL_COMPRES
}
bool checkColumnLevel(char level[TSDB_CL_COMPRESS_OPTION_LEN]) {
if (0 == strlen(level)) return true;
strtolower(level, level);
if (1 == strlen(level)) {
if ('h' == level[0] || 'm' == level[0] || 'l' == level[0]) return true;
} else {