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:
+1
-1
@@ -32,7 +32,7 @@ typedef pthread_mutex_t Mutex;
|
|||||||
#define TAG_COMMIT_WRITE 3
|
#define TAG_COMMIT_WRITE 3
|
||||||
|
|
||||||
#define TAG_UPLOAD_CHUNK_MIN 1000
|
#define TAG_UPLOAD_CHUNK_MIN 1000
|
||||||
#define TAG_UPLOAD_CHUNK_MAX 2000
|
#define TAG_UPLOAD_CHUNK_MAX 100000
|
||||||
|
|
||||||
#define PARALLEL_LIMIT 5
|
#define PARALLEL_LIMIT 5
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user