mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-09 21:57:24 +00:00
add num_entries assertion
This commit is contained in:
parent
f1d68fe4b3
commit
a7ce1db529
1 changed files with 2 additions and 0 deletions
|
@ -213,6 +213,8 @@ hashindex_resize(HashIndex *index, int capacity)
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
assert(index->num_entries == new->num_entries);
|
||||
|
||||
hashindex_free_buckets(index);
|
||||
index->buckets = new->buckets;
|
||||
index->num_buckets = new->num_buckets;
|
||||
|
|
Loading…
Add table
Reference in a new issue