mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-28 07:57:01 +00:00
Feature/scanner performance optimization (#498)
* Refactor: reimplement scanner Signed-off-by: RustFS Developer <dandan@rustfs.com> * comment lock Signed-off-by: junxiang Mu <1948535941@qq.com> * remove dirty file Signed-off-by: junxiang Mu <1948535941@qq.com> * Fix: fix rebase * fix(scanner): Improve error handling and logging Signed-off-by: junxiang Mu <1948535941@qq.com> --------- Signed-off-by: RustFS Developer <dandan@rustfs.com> Signed-off-by: junxiang Mu <1948535941@qq.com> Co-authored-by: RustFS Developer <dandan@rustfs.com>
This commit is contained in:
@@ -366,7 +366,7 @@ impl ObjectStore {
|
||||
// user.credentials.access_key = name.to_owned();
|
||||
// }
|
||||
|
||||
// // todo, 校验 session token
|
||||
// // todo, validate session token
|
||||
|
||||
// Ok(Some(user))
|
||||
// }
|
||||
@@ -894,7 +894,7 @@ impl Store for ObjectStore {
|
||||
}
|
||||
}
|
||||
|
||||
// 合并 items_cache 到 user_items_cache
|
||||
// Merge items_cache to user_items_cache
|
||||
user_items_cache.extend(items_cache);
|
||||
|
||||
// cache.users.store(Arc::new(items_cache.update_load_time()));
|
||||
@@ -960,7 +960,7 @@ impl Store for ObjectStore {
|
||||
// Arc::new(tokio::sync::Mutex::new(CacheEntity::default())),
|
||||
// );
|
||||
|
||||
// // 一次读取 32 个元素
|
||||
// // Read 32 elements at a time
|
||||
// let iter = items
|
||||
// .iter()
|
||||
// .map(|item| item.trim_start_matches("config/iam/"))
|
||||
|
||||
Reference in New Issue
Block a user