2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Close DiskAdaptor after renaming file.
	* src/RequestGroup.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-07-12 07:54:06 +00:00
parent 8da16ce38c
commit 6796e1c805
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Close DiskAdaptor after renaming file.
* src/RequestGroup.cc
2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Corrected indentation

View File

@ -405,6 +405,9 @@ void RequestGroup::loadAndOpenFile(const BtProgressInfoFileHandle& progressInfoF
// by tryAutoFileRenaming()
progressInfoFile->updateFilename();
if(progressInfoFile->exists()) {
// Close DiskAdaptor here. Renmaed file will be opened in the
// next loop .
_pieceStorage->getDiskAdaptor()->closeFile();
continue;
}
_pieceStorage->getDiskAdaptor()->initAndOpenFile();