summaryrefslogtreecommitdiff
path: root/src/journal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal.cc')
-rw-r--r--src/journal.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/journal.cc b/src/journal.cc
index 4b5172f5..4d6e084e 100644
--- a/src/journal.cc
+++ b/src/journal.cc
@@ -134,6 +134,23 @@ bool journal_t::remove_xact(xact_t * xact)
return true;
}
+void journal_t::clear_xdata()
+{
+ foreach (xact_t * xact, xacts)
+ if (! xact->has_flags(ITEM_TEMP))
+ xact->clear_xdata();
+
+ foreach (auto_xact_t * xact, auto_xacts)
+ if (! xact->has_flags(ITEM_TEMP))
+ xact->clear_xdata();
+
+ foreach (period_xact_t * xact, period_xacts)
+ if (! xact->has_flags(ITEM_TEMP))
+ xact->clear_xdata();
+
+ master->clear_xdata();
+}
+
bool journal_t::valid() const
{
if (! master->valid()) {