mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Pass network time down to Expire()
This commit is contained in:
parent
c7503654e8
commit
ebefb21c53
6 changed files with 14 additions and 11 deletions
|
@ -234,11 +234,10 @@ OperationResult SQLite::DoErase(ValPtr key, OperationResultCallback* cb) {
|
|||
* Removes any entries in the backend that have expired. Can be overridden by
|
||||
* derived classes.
|
||||
*/
|
||||
void SQLite::DoExpire() {
|
||||
void SQLite::DoExpire(double current_network_time) {
|
||||
auto stmt = expire_stmt.get();
|
||||
|
||||
if ( auto res = CheckError(sqlite3_bind_double(stmt, 1, run_state::network_time));
|
||||
res.code != ReturnCode::SUCCESS ) {
|
||||
if ( auto res = CheckError(sqlite3_bind_double(stmt, 1, current_network_time)); res.code != ReturnCode::SUCCESS ) {
|
||||
sqlite3_reset(stmt);
|
||||
// TODO: do something with the error here?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue