1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

Fix missing return code check in ChunkIndex._add

(used by ChunkIndex.merge and ChunkIndex.add)
This commit is contained in:
Marian Beermann 2016-07-09 01:26:24 +02:00
parent 66cc520880
commit 3a81a947a1

View file

@ -310,7 +310,8 @@ cdef class ChunkIndex(IndexBase):
result64 = refcount1 + refcount2
values[0] = _htole32(min(result64, _MAX_VALUE))
else:
hashindex_set(self.index, key, data)
if not hashindex_set(self.index, key, data):
raise Exception('hashindex_set failed')
def merge(self, ChunkIndex other):
cdef void *key = NULL