mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(meta): add lock when range metapartitions. #22899488
Signed-off-by: Victor1319 <zengxuewei@oppo.com>
This commit is contained in:
parent
154e7ba0d5
commit
634e1abea3
@ -156,7 +156,7 @@ func (m *metadataManager) updateVolumes() {
|
||||
return true
|
||||
})
|
||||
// push to every partitions
|
||||
m.Range(false, func(_ uint64, mp MetaPartition) bool {
|
||||
m.Range(true, func(_ uint64, mp MetaPartition) bool {
|
||||
dataView := dataViews[mp.GetBaseConfig().VolName]
|
||||
volView := volViews[mp.GetBaseConfig().VolName]
|
||||
if dataView != nil && volView != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user