mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
prevent nil response
fix https://github.com/chrislusf/seaweedfs/issues/2452
This commit is contained in:
parent
791aa3cb44
commit
a0ef6e3611
|
@ -226,7 +226,7 @@ func writeToFile(client volume_server_pb.VolumeServer_CopyFileClient, fileName s
|
||||||
if receiveErr == io.EOF {
|
if receiveErr == io.EOF {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if resp.ModifiedTsNs != 0 {
|
if resp!=nil && resp.ModifiedTsNs != 0 {
|
||||||
modifiedTsNs = resp.ModifiedTsNs
|
modifiedTsNs = resp.ModifiedTsNs
|
||||||
}
|
}
|
||||||
if receiveErr != nil {
|
if receiveErr != nil {
|
||||||
|
|
Loading…
Reference in a new issue