From 4e28efd925214dd60ddc02b8fa3a8c1128bc0fec Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 7 Sep 2008 11:37:15 +0000 Subject: 2008-09-07 Tatsuhiro Tsujikawa Fixed the bug that DiskWriterEntry is not created when its FileEntry.isRequested() is false and it doesn't share a piece with other FileEntries that are requested. This bug causes segmentation fault in the end. --- src/MultiDiskAdaptor.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/MultiDiskAdaptor.h') diff --git a/src/MultiDiskAdaptor.h b/src/MultiDiskAdaptor.h index bc7500f2..4533b7ce 100644 --- a/src/MultiDiskAdaptor.h +++ b/src/MultiDiskAdaptor.h @@ -49,6 +49,7 @@ private: SharedHandle diskWriter; bool _open; bool _directIO; + bool _needsFileAllocation; public: DiskWriterEntry(const SharedHandle& fileEntry); @@ -87,6 +88,10 @@ public: // Additionally, if diskWriter is opened, diskWriter->disableDirectIO() is // called. void disableDirectIO(); + + bool needsFileAllocation() const; + + void needsFileAllocation(bool f); }; typedef SharedHandle DiskWriterEntryHandle; -- cgit