v.21.7Improvement

Fix Zero-Copy Replication with Multiple S3 Volumes

Fix zero-copy replication with several S3 volumes (Fixes #22679). #22864 (ianton-ru).
Fixed zero-copy replication support for setups with multiple S3 volumes.

Why it matters

This fix resolves issues encountered during zero-copy replication when using several S3 volumes simultaneously, ensuring reliable replication without data duplication or corruption. It improves stability and correctness for users leveraging multiple S3 storages in their ClickHouse deployments.

How to use it

Users employing zero-copy replication with multiple S3 volumes do not need to change their configuration; the fix is applied automatically. Just upgrade to the version including this patch to get correct handling of multiple S3 volumes during replication.