diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-12-02 00:09:19 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-12-02 00:09:19 -0800 |
| commit | 003b6245e701bfb6b7f118552a2b4e82d1d7de67 (patch) | |
| tree | 7f2f3853567b29bdcc6e03a3aecb32d110ed6128 | |
| parent | f3bb6450187146df5bc8421e9f4eb2170a59bea8 (diff) | |
| download | seaweedfs-003b6245e701bfb6b7f118552a2b4e82d1d7de67.tar.xz seaweedfs-003b6245e701bfb6b7f118552a2b4e82d1d7de67.zip | |
fix nil
| -rw-r--r-- | weed/topology/topology_vacuum.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/topology_vacuum.go b/weed/topology/topology_vacuum.go index 04c26bc4d..89eefefc7 100644 --- a/weed/topology/topology_vacuum.go +++ b/weed/topology/topology_vacuum.go @@ -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 |
