Skip to content

Commit 46c8d14

Browse files
committed
Add transaction hash
1 parent 635fa25 commit 46c8d14

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy