hs: touch cache files on use to signal activity

Ticket: 7830
pull/14630/head
Lukas Sismis 11 months ago committed by Victor Julien
parent fd3847db72
commit 7031c26865

@ -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