Use IntrusivePtr in TableVal::CallExpireFunc

This commit is contained in:
Jon Siwek 2020-03-23 12:07:11 -07:00
parent 7a4ce9fb51
commit 0b5a18495d
2 changed files with 6 additions and 20 deletions

View file

@ -851,8 +851,7 @@ protected:
double GetExpireTime();
// Calls &expire_func and returns its return interval;
// takes ownership of the reference.
double CallExpireFunc(Val *idx);
double CallExpireFunc(IntrusivePtr<Val> idx);
// Enum for the different kinds of changes an &on_change handler can see
enum OnChangeType { ELEMENT_NEW, ELEMENT_CHANGED, ELEMENT_REMOVED, ELEMENT_EXPIRED };