Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3067e72

Browse files
committed
Remove unneccesary lock
1 parentb841fe6 commit3067e72

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎contrib/multimaster/multimaster.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,13 @@ static bool TransactionIdIsInDoubt(TransactionId xid)
211211
LWLockAcquire(dtm->hashLock,LW_SHARED);
212212
inDoubt=hash_search(xid_in_doubt,&xid,HASH_FIND,NULL)!=NULL;
213213
LWLockRelease(dtm->hashLock);
214+
#if0/* We do not need to wait until transaction locks are released, do we? */
214215
if (!inDoubt)
215216
{
216217
XLogRecPtrlsn;
217218
inDoubt=DtmGetTransactionStatus(xid,&lsn)!=TRANSACTION_STATUS_IN_PROGRESS;
218219
}
220+
#endif
219221
if (inDoubt)
220222
{
221223
XTM_INFO("Wait for transaction %d to complete\n",xid);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp