mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
Add assertion to store_cached_relkind
This commit is contained in:
committed by
Konstantin Knizhnik
parent
02ecb1ebbf
commit
a9e940e236
@@ -228,6 +228,7 @@ void
|
||||
store_cached_relkind(RelKindEntry* entry, RelKind relkind)
|
||||
{
|
||||
SpinLockAcquire(&relkind_ctl->mutex);
|
||||
Assert(entry->relkind == RELKIND_UNKNOWN || entry->relkind == relkind);
|
||||
entry->relkind = relkind;
|
||||
Assert(entry->access_count != 0);
|
||||
if (--entry->access_count == 0)
|
||||
|
||||
Reference in New Issue
Block a user