A corrupt index
Adam Sjøgren
asjo at koldfront.dk
Thu Nov 18 20:59:34 GMT 2021
Olly writes:
> The .DB file is full of blocks, which are 8KB unless you've specified
> otherwise explicitly.
(Haven't.)
> The format of the blocks is described in comments in
> backends/chert/chert_table.cc and .h.
Cool!
> However, it occurs to me you could try xapian-compact on the bad
> database (if you didn't already). That reads the entries in the table
> sequentially for which the dividing keys don't matter, so it may give
> you a good copy - I'd try that first.
I hadn't tried that - I have now started a run on the copy of the index,
to try it out.
> Compacting would fix this count too, but it's stored in the base file
> (baseA is the active one from the output above) and see comments in
> backends/chert/chert_btreebase.cc for the format of that.
I'm crossing my fingers for xapian-compact to save the day - thanks for
the tip and pointers!
Best regards,
Adam
--
"OK, I'll call you tomorrow. And by the way, I'll Adam Sjøgren
see if I can twist some arms and get you an Oscar. asjo at koldfront.dk
But I want a Nobel Prize in return."
More information about the Xapian-discuss
mailing list