diff --git a/src/MultiDiskAdaptor.cc b/src/MultiDiskAdaptor.cc index 690ce317..ec125301 100644 --- a/src/MultiDiskAdaptor.cc +++ b/src/MultiDiskAdaptor.cc @@ -394,6 +394,10 @@ ssize_t MultiDiskAdaptor::readData auto nread = (*i)->getDiskWriter()->readData(data+(len-rem), readLength, fileOffset); + if(nread == 0) { + return totalReadLength; + } + totalReadLength += nread; if(dropCache) {