Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de3077a

Browse files
committed
Bugfix. close heap relation in the case of races between backend and
'DROP EXTENSION aqo'.
1 parent 6c50453 commit de3077a

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)