index: save/commit metadata after messages

Ensure the metadata (dirstamps) for messages are only written / committed _after_
the accompanying message have been written / committed.

This avoids missing updates when indexing gets terminated unexpectedly.
This commit is contained in:
Dirk-Jan C. Binnema
2022-02-03 22:51:02 +02:00
parent 12658a3dc6
commit 05393ba797
5 changed files with 174 additions and 113 deletions

View File

@ -58,7 +58,9 @@ public:
};
/**
* Start indexing. If already underway, do nothing.
* Start indexing. If already underway, do nothing. This returns
* immediately after starting, with the work being done in the
* background.
*
* @param conf a configuration object
*