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

Commitb986f30

Browse files
committed
Add transaction hash
1 parent7e43c55 commitb986f30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎contrib/pg_dtm/dtmd/src/main.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,14 @@ static void onbegin(client_t client, int argc, xid_t *argv) {
288288
}
289289
transaction_clear(t);
290290
l2_list_link(&active_transactions,&t->elem);
291-
t->collision=transaction_hash[t->xid %MAX_TRANSACTIONS];
292-
transaction_hash[t->xid %MAX_TRANSACTIONS]=t;
293291

294292
prev_gxid=t->xid=next_gxid++;
295293
t->snapshots_count=0;
296294
t->size=1;
297295

296+
t->collision=transaction_hash[t->xid %MAX_TRANSACTIONS];
297+
transaction_hash[t->xid %MAX_TRANSACTIONS]=t;
298+
298299
CLIENT_SNAPSENT(client)=0;
299300
CLIENT_XID(client)=t->xid;
300301

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp