Closed DarthBo closed 4 months ago
The replication code has an assert that tests if sizeof(long) == sizeof(long long), which obviously fails on 32-bit architectures.
sizeof(long) == sizeof(long long)
I believe the assert is incorrect on any architecture, considering the following code is actually putting a long long in an int (rsi.repl_stream_db).
rsi.repl_stream_db
I replaced it with code that checks if the value fits in an int, and throws otherwise.
The replication code has an assert that tests if
sizeof(long) == sizeof(long long)
, which obviously fails on 32-bit architectures.I believe the assert is incorrect on any architecture, considering the following code is actually putting a long long in an int (
rsi.repl_stream_db
).I replaced it with code that checks if the value fits in an int, and throws otherwise.