From c22b8457eff27f5227fdf452e036b33e41e229c2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 11 Nov 2009 18:29:21 -0500 Subject: Did away with the "finalizer" abstraction This was from an earlier time, when it was intended to be used by Python. But it's not needed anymore. --- src/journal.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/journal.cc') diff --git a/src/journal.cc b/src/journal.cc index b7ad9a23..c764dbce 100644 --- a/src/journal.cc +++ b/src/journal.cc @@ -126,16 +126,23 @@ bool journal_t::add_xact(xact_t * xact) { xact->journal = this; - if (! xact->finalize() || ! xact_finalize_hooks.run_hooks(*xact)) { + if (! xact->finalize()) { xact->journal = NULL; return false; } + extend_xact(xact); xacts.push_back(xact); return true; } +void journal_t::extend_xact(xact_base_t * xact) +{ + foreach (auto_xact_t * auto_xact, auto_xacts) + auto_xact->extend_xact(*xact); +} + bool journal_t::remove_xact(xact_t * xact) { bool found = false; -- cgit v1.2.3