Send length instead of empty buffer for ReadFile() (#6414)

This commit is contained in:
Krishna Srinivas
2018-09-04 23:22:05 -07:00
committed by Harshavardhana
parent 9e32cc283f
commit 81b7e5c7a8
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ func (client *StorageRPCClient) ReadFile(volume string, path string, offset int6
Vol: volume,
Path: path,
Offset: offset,
Buffer: buffer,
Length: int64(len(buffer)),
Verified: true, // mark read as verified by default
}
if verifier != nil {