mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
Update pgxn/neon/pagestore_smgr.c
Co-authored-by: Heikki Linnakangas <heikki@neon.tech>
This commit is contained in:
committed by
Konstantin Knizhnik
parent
4580391963
commit
4885621e55
@@ -1630,9 +1630,7 @@ neon_write(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum, const vo
|
||||
*/
|
||||
LWLockAcquire(finish_unlogged_build_lock, LW_SHARED);
|
||||
is_locked = true;
|
||||
/*
|
||||
* Recheck relperst under lock - may be unlogged build is already finished
|
||||
*/
|
||||
/* Recheck now that we hold the lock - the build might already have finished */
|
||||
relperst = get_cached_relperst(rinfo);
|
||||
}
|
||||
if (relperst == NEON_RELPERSISTENCE_UNLOGGED || relperst == NEON_RELPERSISTENCE_UNLOGGED_BUILD)
|
||||
|
||||
Reference in New Issue
Block a user