mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +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
|
@ -160,8 +160,11 @@ protected:
|
|||
/**
|
||||
* Removes any entries in the backend that have expired. Can be overridden by
|
||||
* derived classes.
|
||||
*
|
||||
* @param current_network_time The network time as of the start of the
|
||||
* expiration operation.
|
||||
*/
|
||||
void Expire() { DoExpire(); }
|
||||
void Expire(double current_network_time) { DoExpire(current_network_time); }
|
||||
|
||||
/**
|
||||
* Enqueues the Storage::backend_opened event. This is called automatically
|
||||
|
@ -192,7 +195,7 @@ private:
|
|||
virtual OperationResult DoGet(ValPtr key, OperationResultCallback* cb = nullptr) = 0;
|
||||
virtual OperationResult DoErase(ValPtr key, OperationResultCallback* cb = nullptr) = 0;
|
||||
virtual void DoPoll() {}
|
||||
virtual void DoExpire() {}
|
||||
virtual void DoExpire(double current_network_time) {}
|
||||
|
||||
uint8_t modes;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue