diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-08 12:55:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-08 12:55:28 +0200 |
commit | 42123e65fab590f5b052f53ad755fba9bded0c24 (patch) | |
tree | e4339f4e0591c26483d34d265e91cf6191288ac8 /common/session/custom | |
parent | 261863a5037ba892ec33eb037d77736c8e599369 (diff) |
Add callback_ prefix to transaction callback functions
Also test callback_update().
Diffstat (limited to 'common/session/custom')
-rw-r--r-- | common/session/custom/session.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/session/custom/session.cxx b/common/session/custom/session.cxx index 0009d79..d82ab3d 100644 --- a/common/session/custom/session.cxx +++ b/common/session/custom/session.cxx @@ -22,7 +22,7 @@ session:: // Unregister from transaction. // if (tran_ != 0) - tran_->unregister (this); + tran_->callback_unregister (this); assert (current == this); current = 0; @@ -44,7 +44,8 @@ flush (odb::database& db) if (flushed) { tran_ = &odb::transaction::current (); - tran_->register_ (&mark, this, odb::transaction::event_all, 0, &tran_); + tran_->callback_register ( + &mark, this, odb::transaction::event_all, 0, &tran_); } } |