diff --git a/include/log.hpp b/include/log.hpp index f901b87..4da5379 100644 --- a/include/log.hpp +++ b/include/log.hpp @@ -10,7 +10,7 @@ struct Log uint32_t end = 0; void AddTrans(Transaction &&v) { - if (data.size() <= end+1 && end+1 <= max_log_size) //if memory reserved is full + if (data.size() <= end+1 && end+1 < max_log_size) //if memory reserved is full { data.resize(data.size() + pre_log_size); //prefetching memory }