fix(stream): not set the in progress if stream already exists.

This commit is contained in:
Haojun Liao 2024-09-10 10:37:23 +08:00
parent 68e3beac0e
commit eba32fdcb3
1 changed files with 3 additions and 1 deletions

View File

@ -786,7 +786,9 @@ static int32_t mndProcessCreateStreamReq(SRpcMsg *pReq) {
if (pStream != NULL && code == 0) {
if (createReq.igExists) {
mInfo("stream:%s, already exist, ignore exist is set", createReq.name);
goto _OVER;
mndReleaseStream(pMnode, pStream);
tFreeSCMCreateStreamReq(&createReq);
return code;
} else {
code = TSDB_CODE_MND_STREAM_ALREADY_EXIST;
goto _OVER;