mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-30 16:59:52 +00:00
sync s3s, fix #224
This commit is contained in:
@@ -554,7 +554,7 @@ impl FileMeta {
|
||||
let header = &ver.header;
|
||||
|
||||
if let Some(vid) = has_vid {
|
||||
if header.version_id == Some(vid) {
|
||||
if header.version_id != Some(vid) {
|
||||
is_latest = false;
|
||||
succ_mod_time = header.mod_time;
|
||||
continue;
|
||||
@@ -2045,7 +2045,7 @@ pub struct FileInfoOpts {
|
||||
pub data: bool,
|
||||
}
|
||||
|
||||
async fn get_file_info(buf: &[u8], volume: &str, path: &str, version_id: &str, opts: FileInfoOpts) -> Result<FileInfo> {
|
||||
pub async fn get_file_info(buf: &[u8], volume: &str, path: &str, version_id: &str, opts: FileInfoOpts) -> Result<FileInfo> {
|
||||
let vid = {
|
||||
if version_id.is_empty() {
|
||||
None
|
||||
@@ -2067,8 +2067,9 @@ async fn get_file_info(buf: &[u8], volume: &str, path: &str, version_id: &str, o
|
||||
});
|
||||
}
|
||||
|
||||
warn!("get_file_info vid {:?}", &vid);
|
||||
let fi = meta.into_fileinfo(volume, path, version_id, opts.data, true)?;
|
||||
|
||||
warn!("get_file_info {:?}", &fi);
|
||||
Ok(fi)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user