slight change

This commit is contained in:
EntireTwix 2021-06-03 02:27:35 -07:00
parent 899851bec3
commit 9101a42b5d

View file

@ -11,7 +11,7 @@ struct Log
void AddTrans(Transaction &&v) void AddTrans(Transaction &&v)
{ {
end += (end < max_log_size); //branchless end += (end < max_log_size); //branchless
if (data.size() <= end && end < max_log_size) //if memory reserved is full and max isnt reached if (data.size() == end && end < max_log_size) //if memory reserved is full and max isnt reached
{ {
if (data.size() + pre_log_size > max_log_size) //if prefetched memory is larger then max if (data.size() + pre_log_size > max_log_size) //if prefetched memory is larger then max
{ {