update index updated at on index writes

This commit is contained in:
mpostma
2021-03-11 18:42:21 +01:00
parent 80d0f9c49d
commit 615fe095e1
7 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,4 @@
use chrono::Utc;
use roaring::RoaringBitmap;
use crate::{ExternalDocumentsIds, Index};
@ -18,6 +19,7 @@ impl<'t, 'u, 'i> ClearDocuments<'t, 'u, 'i> {
}
pub fn execute(self) -> anyhow::Result<u64> {
self.index.set_updated_at(self.wtxn, &Utc::now())?;
let Index {
env: _env,
main: _main,