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

Commit46c8d14

Browse files
committed
Add transaction hash
1 parent635fa25 commit46c8d14

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎dtmd/src/main.c‎

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

292290
prev_gxid=t->xid=next_gxid++;
293291
t->snapshots_count=0;
294292
t->size=1;
295293

294+
t->collision=transaction_hash[t->xid %MAX_TRANSACTIONS];
295+
transaction_hash[t->xid %MAX_TRANSACTIONS]=t;
296+
296297
CLIENT_SNAPSENT(client)=0;
297298
CLIENT_XID(client)=t->xid;
298299

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp