Skip to content

Commit 4bd4295

Browse files
committed
mark 'prel' invalid before locking parent
1 parent 41d87d8 commit 4bd4295

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/relation_info.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ refresh_pathman_relation_info(Oid relid,
104104
FreeRangesArray(prel);
105105
}
106106

107+
/* First we assume that this entry is invalid */
108+
prel->valid = false;
109+
107110
/* Try locking parent, exit fast if 'allow_incomplete' */
108111
if (allow_incomplete)
109112
{
@@ -121,9 +124,6 @@ refresh_pathman_relation_info(Oid relid,
121124
return NULL; /* exit */
122125
}
123126

124-
/* First we assume that this entry is invalid */
125-
prel->valid = false;
126-
127127
/* Make both arrays point to NULL */
128128
prel->children = NULL;
129129
prel->ranges = NULL;

0 commit comments

Comments
 (0)