Compress empty non-optional table to zero size
commit5b67be4e5118f45490089810d31611e9d2a814d3
authorOlly Betts <olly@survex.com>
Tue, 16 Jan 2024 21:41:08 +0000 (17 10:41 +1300)
committerOlly Betts <olly@survex.com>
Tue, 16 Jan 2024 21:41:08 +0000 (17 10:41 +1300)
treea29294e197abf7ca315bdf0cedaa0bff38a51a6c
parent86b5e2ce03427c28f11c17bfc9bcc05d2a9f9966
Compress empty non-optional table to zero size

Previously a non-optional table would always be compacted to at least
one block. This isn't important in general as the non-optional tables
are not likely to be empty in a real database but it's helpful for
making small test database and it seems weird that compaction was making
a database much larger in percentage terms in this edge case.
xapian-core/backends/glass/glass_compact.cc