Merge remote-tracking branch 'origin/topic/awelzel/propagate-on-change-through-copy'

* origin/topic/awelzel/propagate-on-change-through-copy:
  TableVal: Propagate &on_change attribute through copy()
  testing/btest: Add test showing &expire_func/&create_expire is copied
This commit is contained in:
Arne Welzel 2023-02-17 17:36:40 +01:00
commit 0fd92555d9
8 changed files with 145 additions and 1 deletions

View file

@ -2661,6 +2661,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;