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.
This commit is contained in:
Claude
2026-01-24 01:13:59 +00:00
parent a5296434d8
commit 3d44676a96
+1 -1
View File
@@ -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