mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-01-18 06:30:07 +08:00
fix nil
This commit is contained in:
parent
f3bb645018
commit
003b6245e7
@ -108,7 +108,7 @@ func batchVacuumVolumeCommit(grpcDialOption grpc.DialOption, vl *VolumeLayout, v
|
||||
resp, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{
|
||||
VolumeId: uint32(vid),
|
||||
})
|
||||
if resp.IsReadOnly {
|
||||
if resp != nil && resp.IsReadOnly {
|
||||
isReadOnly = true
|
||||
}
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user