Skip to content

Commit 1fc95ec

Browse files
gfphoenix78my-ship-it
authored andcommitted
Wait a little more time for the writer process
When the reader process acquires a LOCK, it requires to get the writer PROC. For first time, the reader may not get the writer PROC. It's unknown why the reader can't find the writer. Wait a little more time for it.
1 parent 37fce69 commit 1fc95ec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/backend/storage/lmgr

src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ LockAcquireExtended(const LOCKTAG *locktag,
938938
/* Find the guy who should manage our locks */
939939
volatile PGPROC * proc = FindProcByGpSessionId(gp_session_id);
940940
int count = 0;
941-
while(proc==NULL && count < 5)
941+
while(proc==NULL && count < 200)
942942
{
943943
pg_usleep( /* microseconds */ 2000);
944944
count++;

0 commit comments

Comments
 (0)