mirror of https://github.com/borgbackup/borg.git
add num_entries assertion
This commit is contained in:
parent
b79766a933
commit
316bb7c937
|
@ -225,6 +225,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;
|
||||||
|
|
Loading…
Reference in New Issue