From 3d44676a9609cd84246fac1c662c6d71502cf030 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 24 Jan 2026 01:13:59 +0000 Subject: [PATCH] Fix upload tag overflow by increasing TAG_UPLOAD_CHUNK_MAX The upload tag is computed as TAG_UPLOAD_CHUNK_MIN + upload_index, and the assertion tag <= TAG_UPLOAD_CHUNK_MAX was failing when the number of uploads exceeded 1000. This can happen with small chunk sizes (e.g., 1 byte) and large writes, where each chunk needs multiple upload operations for replication. Increase TAG_UPLOAD_CHUNK_MAX from 2000 to 100000 to accommodate up to 99000 concurrent upload operations per write. --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 183bda6..cf14f36 100644 --- a/src/client.c +++ b/src/client.c @@ -32,7 +32,7 @@ typedef pthread_mutex_t Mutex; #define TAG_COMMIT_WRITE 3 #define TAG_UPLOAD_CHUNK_MIN 1000 -#define TAG_UPLOAD_CHUNK_MAX 2000 +#define TAG_UPLOAD_CHUNK_MAX 100000 #define PARALLEL_LIMIT 5