Fix glass freelist bug
commit08cfe8a579c4b1574e513aa3c9aefd5091943f1e
authorOlly Betts <olly@survex.com>
Tue, 20 Mar 2018 01:55:50 +0000 (20 14:55 +1300)
committerOlly Betts <olly@survex.com>
Tue, 20 Mar 2018 03:08:38 +0000 (20 16:08 +1300)
tree57736c276d3602a00b303f9555daa6564883d82a
parent02f65981056208f4c723e691985b634b5a654b60
Fix glass freelist bug

If changes to a new database which didn't modify the termlist table
were committed, then a block which had been allocated to be the root
block in the termlist table was leaked.  This was largely harmless,
except that it was detected by Database::check() and caused an error.

Reported by Antoine Beaupré and David Bremner.
xapian-core/backends/glass/glass_table.cc
xapian-core/tests/api_backend.cc