mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 21:12:55 +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);
|
LWLockAcquire(finish_unlogged_build_lock, LW_SHARED);
|
||||||
is_locked = true;
|
is_locked = true;
|
||||||
/*
|
/* Recheck now that we hold the lock - the build might already have finished */
|
||||||
* Recheck relperst under lock - may be unlogged build is already finished
|
|
||||||
*/
|
|
||||||
relperst = get_cached_relperst(rinfo);
|
relperst = get_cached_relperst(rinfo);
|
||||||
}
|
}
|
||||||
if (relperst == NEON_RELPERSISTENCE_UNLOGGED || relperst == NEON_RELPERSISTENCE_UNLOGGED_BUILD)
|
if (relperst == NEON_RELPERSISTENCE_UNLOGGED || relperst == NEON_RELPERSISTENCE_UNLOGGED_BUILD)
|
||||||
|
|||||||
Reference in New Issue
Block a user