From 6e57178dc822ec2f7a0e96caa27d71218f26d921 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Thu, 8 Jul 2021 20:42:26 -0700 Subject: [PATCH] :bug: add trans was skipping ChangeOn() when full --- src/log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.cpp b/src/log.cpp index 84ead93..9fc19f9 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -2,6 +2,7 @@ void Log::AddTrans(Transaction &&t) noexcept { + log_flag.SetChangesOn(); #if MAX_LOG_SIZE == 1 data = std::move(t); #else @@ -16,7 +17,6 @@ void Log::AddTrans(Transaction &&t) noexcept } data.push_back(std::move(t)); // In either case we have space under max length, move to new spot #endif - log_flag.SetChangesOn(); } const std::string &Log::GetLog() noexcept