feat: support update active code in sdb

This commit is contained in:
kailixu 2023-05-18 13:01:28 +08:00
parent 5098d44068
commit ab06dd04f4
1 changed files with 1 additions and 1 deletions

View File

@ -1054,7 +1054,7 @@ static int32_t mndProcessConfigDnodeReq(SRpcMsg *pReq) {
}
int32_t vlen = strlen(cfgReq.value);
if ((idx == 10 && vlen != (TSDB_ACTIVE_KEY_LEN - 1)) ||
(idx == 11 && (vlen > (TSDB_CONN_ACTIVE_KEY_LEN -1) || vlen < (TSDB_ACTIVE_KEY_LEN - 1))) {
(idx == 11 && (vlen > (TSDB_CONN_ACTIVE_KEY_LEN -1) || vlen < (TSDB_ACTIVE_KEY_LEN - 1)))) {
mError("dnode:%d, failed to config activeCode since invalid vlen. conf:%s, val:%s", cfgReq.dnodeId, cfgReq.config,
cfgReq.value);
terrno = TSDB_CODE_INVALID_OPTION;