merge versioning, fix buff bitrot

This commit is contained in:
weisd
2024-11-02 15:12:06 +08:00
parent 09ea11c13d
commit 52a81f8fd5
9 changed files with 183 additions and 70 deletions
-1
View File
@@ -6,7 +6,6 @@ mod storage;
use clap::Parser;
use common::error::{Error, Result};
use ecstore::{
config::GLOBAL_ConfigSys,
endpoints::EndpointServerPools,
set_global_endpoints,
store::{init_local_disks, ECStore},
+7 -3
View File
@@ -512,6 +512,13 @@ impl S3 for FS {
Ok(S3Response::new(output))
}
async fn list_object_versions(
&self,
_req: S3Request<ListObjectVersionsInput>,
) -> S3Result<S3Response<ListObjectVersionsOutput>> {
Err(s3_error!(NotImplemented, "ListObjectVersions is not implemented yet"))
}
#[tracing::instrument(level = "debug", skip(self, req))]
async fn put_object(&self, req: S3Request<PutObjectInput>) -> S3Result<S3Response<PutObjectOutput>> {
let input = req.input;
@@ -529,9 +536,6 @@ impl S3 for FS {
key,
metadata,
content_length,
content_type,
checksum_sha256,
content_md5,
..
} = input;