mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
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.
This commit is contained in:
parent
f39b9e04db
commit
e386523a41
1 changed files with 1 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
return make_rollback_pair_attr(size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue