This commit is contained in:
Chris Lu 2020-12-02 00:09:19 -08:00
parent f3bb645018
commit 003b6245e7

View file

@ -108,7 +108,7 @@ func batchVacuumVolumeCommit(grpcDialOption grpc.DialOption, vl *VolumeLayout, v
resp, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{ resp, err := volumeServerClient.VacuumVolumeCommit(context.Background(), &volume_server_pb.VacuumVolumeCommitRequest{
VolumeId: uint32(vid), VolumeId: uint32(vid),
}) })
if resp.IsReadOnly { if resp != nil && resp.IsReadOnly {
isReadOnly = true isReadOnly = true
} }
return err return err