fix: skip dub key error

This commit is contained in:
xsren 2024-08-05 19:30:22 +08:00
parent a61149047f
commit 53d115f74a
1 changed files with 2 additions and 0 deletions

View File

@ -1321,6 +1321,8 @@ UsingRegex **getRegComp(const char *pPattern) {
uError("Failed to put regex pattern %s into cache, exception internal error.", pPattern); uError("Failed to put regex pattern %s into cache, exception internal error.", pPattern);
terrno = code; terrno = code;
return NULL; return NULL;
} else if (code == TSDB_CODE_DUP_KEY) {
terrno = 0;
} }
ppUsingRegex = (UsingRegex **)taosHashAcquire(sRegexCache.regexHash, pPattern, strlen(pPattern)); ppUsingRegex = (UsingRegex **)taosHashAcquire(sRegexCache.regexHash, pPattern, strlen(pPattern));
if (ppUsingRegex) { if (ppUsingRegex) {