Refactor handling of input files
commit67717d56f346af445a7df3781438e11a42ab504e
authorOlly Betts <olly@survex.com>
Fri, 2 Nov 2018 03:48:04 +0000 (2 16:48 +1300)
committerOlly Betts <olly@survex.com>
Fri, 2 Nov 2018 03:48:04 +0000 (2 16:48 +1300)
treedd158cb6fd30508d51f9dbac7235d8b8c254f12e
parentdb46771c21cb8a632faae0b9343d083e5bea8746
Refactor handling of input files

We now try much harder to avoid opening input file more than once by
reusing the file descriptor in more cases.

We no longer call posix_fadvise() with POSIX_FADV_NOREUSE under Linux,
since it's still not implemented there.

We now only call posix_fadvise() with POSIX_FADV_DONTNEED under Linux,
and we do it right before we close the file descriptor.
xapian-applications/omega/diritor.cc
xapian-applications/omega/diritor.h
xapian-applications/omega/index_file.cc
xapian-applications/omega/loadfile.cc
xapian-applications/omega/loadfile.h
xapian-applications/omega/md5wrap.cc
xapian-applications/omega/md5wrap.h