Commit cd63f43c authored by Marko Mäkelä's avatar Marko Mäkelä

Fix the Windows build

my_atomic_load32() expects a pointer to non-const on Windows.
parent 1fa14a7c
...@@ -1125,7 +1125,8 @@ class trx_sys_t ...@@ -1125,7 +1125,8 @@ class trx_sys_t
/** @return number of committed transactions waiting for purge */ /** @return number of committed transactions waiting for purge */
ulint history_size() const ulint history_size() const
{ {
return uint32(my_atomic_load32(&rseg_history_len)); return uint32(my_atomic_load32(&const_cast<trx_sys_t*>(this)
->rseg_history_len));
} }
/** Add to the TRX_RSEG_HISTORY length (on database startup). */ /** Add to the TRX_RSEG_HISTORY length (on database startup). */
void history_add(int32 len) void history_add(int32 len)
......
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