Commit e386523a authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

MDEV-7526: TokuDB doesn't build on OS X

Fixed compile warning related to if statement always being true. The if
statement can not be false, as the address of a member field is always
true.
parent f39b9e04
......@@ -147,9 +147,7 @@ static inline PAIR_ATTR make_rollback_pair_attr(long size) {
PAIR_ATTR
rollback_memory_size(ROLLBACK_LOG_NODE log) {
size_t size = sizeof(*log);
if (&log->rollentry_arena) {
size += log->rollentry_arena.total_footprint();
}
size += log->rollentry_arena.total_footprint();
return make_rollback_pair_attr(size);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment