Skip to content

Commit 2496da4

Browse files
committed
Merge branch 'rs/parallel-read-cache-fix'
A follow-up fix to a topic already in 'master'. * rs/parallel-read-cache-fix: read-cache: fix mem-pool allocation for multi-threaded index loading
2 parents 21de7e9 + bcd2c5e commit 2496da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

read-cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2101,7 +2101,7 @@ static unsigned long load_cache_entries_threaded(struct index_state *istate, con
21012101
nr = 0;
21022102
for (j = p->ieot_start; j < p->ieot_start + p->ieot_blocks; j++)
21032103
nr += p->ieot->entries[j].nr;
2104-
istate->ce_mem_pool = xmalloc(sizeof(*istate->ce_mem_pool));
2104+
p->ce_mem_pool = xmalloc(sizeof(*istate->ce_mem_pool));
21052105
if (istate->version == 4) {
21062106
mem_pool_init(p->ce_mem_pool,
21072107
estimate_cache_size_from_compressed(nr));

0 commit comments

Comments
 (0)