Skip to content

Commit 0eafe6f

Browse files
committed
Bugfix. close heap relation in the case of races between backend and
'DROP EXTENSION aqo'.
1 parent 992c068 commit 0eafe6f

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
@@ -67,7 +67,10 @@ open_aqo_relation(char *heaprelnspname, char *heaprelname,
6767
/* Try to open index relation carefully. */
6868
*irel = try_relation_open(reloid, lockmode);
6969
if (*irel == NULL)
70+
{
71+
relation_close(*hrel, lockmode);
7072
goto cleanup;
73+
}
7174
return true;
7275

7376
cleanup:

0 commit comments

Comments
 (0)