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:
@ -303,8 +303,10 @@ public:
|
||||
*
|
||||
* @param path a filesystem path
|
||||
* @param tstamp the timestamp for that path
|
||||
* @param whether to do this as part of a transaction
|
||||
*/
|
||||
void set_dirstamp(const std::string& path, time_t tstamp);
|
||||
void set_dirstamp(const std::string& path, time_t tstamp,
|
||||
bool use_transaction = false);
|
||||
|
||||
/**
|
||||
* Get the number of documents in the document database
|
||||
|
||||
Reference in New Issue
Block a user