Add assert !writeback_bytes

This commit is contained in:
Vitaliy Filippov
2025-02-19 01:15:46 +03:00
parent 78ca4538bf
commit ccbc0c5928
2 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -673,7 +673,7 @@ void cluster_client_t::execute_internal(cluster_op_t *op)
}
// Just copy and acknowledge the operation
wb->copy_write(op, CACHE_DIRTY);
while (wb->writeback_bytes + op->len > client_max_buffered_bytes || wb->writeback_queue_size > client_max_buffered_ops)
while (wb->writeback_bytes > client_max_buffered_bytes || wb->writeback_queue_size > client_max_buffered_ops)
{
// Initiate some writeback (asynchronously)
wb->start_writebacks(this, 1);