Skip to content

Commit f87d6eb

Browse files
riptlmmcgee-jump
authored andcommitted
restore: fix funk record linked list corruption
Fixes a bug found by snapshot-load --fsck
1 parent 5fbc37d commit f87d6eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/discof/restore/fd_snapin_tile_funk.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ fd_snapin_process_account_batch_funk( fd_snapin_tile_t * ctx,
168168
memset( r, 0, sizeof(fd_funk_rec_t) );
169169
fd_funk_txn_xid_copy( r->pair.xid, ctx->xid );
170170
fd_funk_rec_key_copy( r->pair.key, &key );
171+
r->prev_idx = UINT_MAX;
172+
r->next_idx = UINT_MAX;
171173

172174
/* Insert to hash map. In theory, a key could appear twice in the
173175
same batch. All accounts in a batch are guaranteed to be from

0 commit comments

Comments
 (0)