merge from wal

This commit is contained in:
slguan 2020-04-18 12:09:45 +08:00
parent cde4ab7c65
commit c0f69556d8
1 changed files with 3 additions and 1 deletions

View File

@ -402,8 +402,10 @@ static int32_t mgmtCreateDnode(uint32_t ip) {
int32_t code = sdbInsertRow(&oper);
if (code != TSDB_CODE_SUCCESS) {
int dnodeId = pDnode->dnodeId;
tfree(pDnode);
code = TSDB_CODE_SDB_ERROR;
mError("failed to create dnode:%d, result:%s", dnodeId, tstrerror(code));
return TSDB_CODE_SDB_ERROR;
}
mPrint("dnode:%d is created, result:%s", pDnode->dnodeId, tstrerror(code));