Fix buffer insert in cluster_client

hotfix-1.0.0
Vitaliy Filippov 2023-08-12 11:08:50 +03:00
parent dc90faec7e
commit cec5ceab77
1 changed files with 2 additions and 2 deletions

View File

@ -565,11 +565,11 @@ void cluster_client_t::copy_write(cluster_op_t *op, std::map<object_id, cluster_
while (len > 0)
{
uint64_t new_len = 0;
if (dirty_it == dirty_buffers.end())
if (dirty_it == dirty_buffers.end() || dirty_it->first.inode != op->inode)
{
new_len = len;
}
else if (dirty_it->first.inode != op->inode || dirty_it->first.stripe > pos)
else if (dirty_it->first.stripe > pos)
{
new_len = dirty_it->first.stripe - pos;
if (new_len > len)