Use O_TRUNC when compacting to single file
commitc80ae45dfbd9e12b8ab463f620f28d4633c88b74
authorOlly Betts <olly@survex.com>
Wed, 3 Jan 2018 04:33:35 +0000 (3 17:33 +1300)
committerOlly Betts <olly@survex.com>
Wed, 3 Jan 2018 04:33:35 +0000 (3 17:33 +1300)
tree9393c1993c9cee7bd56b8e09185c0c9bedce701b
parentaadd1dc0b0d99d80f4d59fd19bfb870bb3e01792
Use O_TRUNC when compacting to single file

If the output already exists but is larger than our output we don't want
to just overwrite the start of it.  This case also used to result in
confusing compaction percentages.
xapian-core/backends/glass/glass_compact.cc