Don't pass min when sniffing for single file DB
commitf5825e5d49896367c42a8c77d5ecce05fd812d6e
authorOlly Betts <olly@survex.com>
Fri, 26 Feb 2016 00:14:42 +0000 (26 13:14 +1300)
committerOlly Betts <olly@survex.com>
Fri, 26 Feb 2016 00:14:42 +0000 (26 13:14 +1300)
treecb87bbc941272c4ba6880deb18ae6d55b55eb300
parent8b01b5065a2b56e630246fe87032ee59aba65649
Don't pass min when sniffing for single file DB

We do check the file size first, but could fail to read enough if
another process or thread truncates the file between us doing that and
calling io_read().  In this case it's better to try to open it as a stub
file than throw DatabaseCorruptError.
xapian-core/backends/dbcheck.cc
xapian-core/backends/dbfactory.cc