🌐 AI搜索 & 代理 主页
Skip to content

Commit 2089b09

Browse files
committed
Bugfix. close heap relation in the case of races between backend and
'DROP EXTENSION aqo'.
1 parent 73160b9 commit 2089b09

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storage.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ open_aqo_relation(char *heaprelnspname, char *heaprelname,
7070
/* Try to open index relation carefully. */
7171
*irel = try_relation_open(reloid, lockmode);
7272
if (*irel == NULL)
73+
{
74+
relation_close(*hrel, lockmode);
7375
goto cleanup;
76+
}
7477
return true;
7578

7679
cleanup:

0 commit comments

Comments
 (0)