mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Fix assertion
This commit is contained in:
parent
edc393a63b
commit
08074af253
@ -501,13 +501,13 @@ void ChunkPatcher::nextChunkPatcherBytes(int64 pos, const char * buf, size_t bsi
|
||||
if (!curr_only_zeros)
|
||||
{
|
||||
cb->next_chunk_patcher_bytes(sparse_buf.data(), sparse_blocksize, curr_changed);
|
||||
assert(cb->chunk_patcher_pos() < 0 || cb->chunk_patcher_pos() == pos+bsize);
|
||||
assert(cb->chunk_patcher_pos() < 0 || cb->chunk_patcher_pos() == pos + bsize_to_checkpoint);
|
||||
}
|
||||
else
|
||||
{
|
||||
bool is_sparse = true;
|
||||
cb->next_chunk_patcher_bytes(NULL, sparse_blocksize, curr_changed, &is_sparse);
|
||||
assert(cb->chunk_patcher_pos() < 0 || cb->chunk_patcher_pos() == pos + bsize);
|
||||
assert(cb->chunk_patcher_pos() < 0 || cb->chunk_patcher_pos() == pos + bsize_to_checkpoint);
|
||||
}
|
||||
|
||||
curr_only_zeros = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user