Pass totalLength to DiskWriter::openExistingFile

pull/1/head
Tatsuhiro Tsujikawa 2007-03-24 15:32:40 +00:00
parent f9ac6bb6fd
commit e36fadac88
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ void AbstractSingleDiskAdaptor::closeFile() {
}
void AbstractSingleDiskAdaptor::openExistingFile() {
diskWriter->openExistingFile(getFilePath());
diskWriter->openExistingFile(getFilePath(), totalLength);
}
void AbstractSingleDiskAdaptor::writeData(const unsigned char* data, int32_t len, int64_t offset) {

View File

@ -68,7 +68,7 @@ public:
void openExistingFile(const string& topDir)
{
diskWriter->openExistingFile(getFilePath(topDir));
diskWriter->openExistingFile(getFilePath(topDir), fileEntry->getLength());
}
void closeFile()