mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-25 21:46:50 +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:
@@ -109,7 +109,7 @@ where
|
||||
self.clone().save_iam_formatter().await?;
|
||||
self.clone().load().await?;
|
||||
|
||||
// 检查环境变量是否设置
|
||||
// Check if environment variable is set
|
||||
let skip_background_task = std::env::var("RUSTFS_SKIP_BACKGROUND_TASK").is_ok();
|
||||
|
||||
if !skip_background_task {
|
||||
|
||||
@@ -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