summaryrefslogtreecommitdiff
path: root/configure.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-09-03 22:45:12 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2013-09-03 22:45:12 +0200
commit078388f39ca8d6f0b5188cc060a7f0e1c2808d87 (patch)
tree5a3816ae71d902f4cf89d7f04167da8f7903a75a /configure.cmake
parent92003f0166b226207837ec78e1258d469a379cff (diff)
downloadmariadb-git-078388f39ca8d6f0b5188cc060a7f0e1c2808d87.tar.gz
MDEV-4926: Remove division-using-subtraction implementation from semi-sync plugin
If rpl_semi_sync_master_timeout is large, calculation of absolute waiting time in semi-sync plugin is inefficient. This error is specific to systems with 64 bit long values (all 64 bit Unixes) In rpl_semi_sync_master_timeout has maximal value (= MAX_ULONGLONG), calculating abstime may require ~ 18 billion subtract operations. The fix is to use division instead of subtraction-in-a-loop. Also fixed an integer overflow bug.
Diffstat (limited to 'configure.cmake')
0 files changed, 0 insertions, 0 deletions