1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-03-10 06:03:38 +00:00

add num_entries assertion

This commit is contained in:
Thomas Waldmann 2023-02-08 22:45:11 +01:00 committed by snsmac
parent f1d68fe4b3
commit a7ce1db529

View file

@ -213,6 +213,8 @@ hashindex_resize(HashIndex *index, int capacity)
return 0; return 0;
} }
} }
assert(index->num_entries == new->num_entries);
hashindex_free_buckets(index); hashindex_free_buckets(index);
index->buckets = new->buckets; index->buckets = new->buckets;
index->num_buckets = new->num_buckets; index->num_buckets = new->num_buckets;