TableVal: Propagate &on_change attribute through copy()

Mostly for consistency with &default, &expire_func and other attributes
being propagated through a copy(). Seems this was just missed during
the implementation and/or was never tested for.
This commit is contained in:
Arne Welzel 2023-02-17 16:15:20 +01:00
parent 2b5db43270
commit b2c4f8fd92
4 changed files with 46 additions and 0 deletions

View file

@ -2649,6 +2649,9 @@ ValPtr TableVal::DoClone(CloneState* state)
detail::timer_mgr->Add(tv->timer);
}
if ( change_func )
tv->change_func = change_func;
if ( expire_func )
tv->expire_func = expire_func;