mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-08 06:13:14 +00:00
fix remote err && lock err
Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
@@ -50,8 +50,8 @@ impl DRWMutex {
|
||||
Self {
|
||||
owner,
|
||||
names,
|
||||
write_locks: Vec::with_capacity(lockers.len()),
|
||||
read_locks: Vec::with_capacity(lockers.len()),
|
||||
write_locks: vec![String::new(); lockers.len()],
|
||||
read_locks: vec![String::new(); lockers.len()],
|
||||
cancel_refresh_sender: None,
|
||||
// rng: rand::thread_rng(),
|
||||
lockers,
|
||||
|
||||
Reference in New Issue
Block a user