mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(access): remove marker of listing broken disk
. #23065780 Signed-off-by: slasher <shenjie1@oppo.com>
This commit is contained in:
parent
6ad085725c
commit
f7472eeb2d
@ -257,13 +257,12 @@ func (s *serviceControllerImpl) processBrokenDisks(
|
||||
|
||||
args := &clustermgr.ListOptionArgs{Status: st, Count: 1 << 10}
|
||||
for {
|
||||
list, err := s.cmClient.ListDisk(ctx, args)
|
||||
err = fn(ctx, args, brokenDiskIDs)
|
||||
err := fn(ctx, args, brokenDiskIDs)
|
||||
if err != nil {
|
||||
span.Errorf("load disks of cluster %d, err:%+v", s.config.ClusterID, err)
|
||||
return
|
||||
}
|
||||
if args.Marker = list.Marker; args.Marker <= proto.InvalidDiskID {
|
||||
if args.Marker <= proto.InvalidDiskID {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user