mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-31 19:52:22 +00:00
hashindex: simplify assert
This commit is contained in:
parent
b2117bfd4f
commit
ecf5ad43ed
1 changed files with 2 additions and 3 deletions
|
@ -594,10 +594,9 @@ hashindex_set(HashIndex *index, const unsigned char *key, const void *value)
|
|||
assert(BUCKET_IS_EMPTY(index, start_idx));
|
||||
idx = start_idx;
|
||||
}
|
||||
} else if(BUCKET_IS_DELETED(index, idx)) {
|
||||
/* as expected, nothing to do */
|
||||
} else {
|
||||
assert(0); /* bucket is full, must not happen! */
|
||||
/* Bucket must be either EMPTY (see above) or DELETED. */
|
||||
assert(BUCKET_IS_DELETED(index, idx));
|
||||
}
|
||||
ptr = BUCKET_ADDR(index, idx);
|
||||
memcpy(ptr, key, index->key_size);
|
||||
|
|
Loading…
Reference in a new issue