mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 05:26:50 +00:00
fix list object err (#831)
fix list object err (#831) #827 #815 #635 #752
This commit is contained in:
@@ -1136,9 +1136,9 @@ impl LocalDisk {
|
|||||||
|
|
||||||
let name = path_join_buf(&[current.as_str(), entry.as_str()]);
|
let name = path_join_buf(&[current.as_str(), entry.as_str()]);
|
||||||
|
|
||||||
if !dir_stack.is_empty() {
|
while let Some(pop) = dir_stack.last().cloned()
|
||||||
if let Some(pop) = dir_stack.last().cloned() {
|
&& pop < name
|
||||||
if pop < name {
|
{
|
||||||
out.write_obj(&MetaCacheEntry {
|
out.write_obj(&MetaCacheEntry {
|
||||||
name: pop.clone(),
|
name: pop.clone(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
@@ -1152,8 +1152,6 @@ impl LocalDisk {
|
|||||||
}
|
}
|
||||||
dir_stack.pop();
|
dir_stack.pop();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let mut meta = MetaCacheEntry {
|
let mut meta = MetaCacheEntry {
|
||||||
name,
|
name,
|
||||||
|
|||||||
Reference in New Issue
Block a user