hs: touch cache files on use to signal activity

Ticket: 7893
(cherry picked from commit 7031c26865)
pull/15003/head
Lukas Sismis 7 months ago committed by Victor Julien
parent 763f883d5d
commit 4261f5e4e7

@ -150,6 +150,10 @@ int HSLoadCache(hs_database_t **hs_db, const char *hs_db_hash, const char *dirpa
}
ret = 0;
/* Touch file to update modification time so active caches are retained. */
if (SCTouchFile(hash_file_static) != 0) {
SCLogDebug("Failed to update mtime for %s", hash_file_static);
}
goto freeup;
}

Loading…
Cancel
Save