mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-06-03 05:40:40 +00:00
fix(index): sanitize S3 upload buffer size (#3300)
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com>
This commit is contained in:
@@ -294,6 +294,14 @@ impl InvertedIndexConfig {
|
||||
self.intermediate_path = join_dir(data_home, "index_intermediate");
|
||||
}
|
||||
|
||||
if self.write_buffer_size < MULTIPART_UPLOAD_MINIMUM_SIZE {
|
||||
self.write_buffer_size = MULTIPART_UPLOAD_MINIMUM_SIZE;
|
||||
warn!(
|
||||
"Sanitize index write buffer size to {}",
|
||||
self.write_buffer_size
|
||||
);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user