mariadb/plugin/semisync
Vladislav Vaintroub 078388f39c 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.
2013-09-03 22:45:12 +02:00
..
CMakeLists.txt Patch for Bug#55854 (MySQL AB should not be AUTHOR, copyright incorrect). 2010-08-12 19:19:57 +04:00
semisync.cc Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00
semisync.h Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00
semisync_master.cc MDEV-4926: Remove division-using-subtraction implementation from semi-sync plugin 2013-09-03 22:45:12 +02:00
semisync_master.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
semisync_master_plugin.cc Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00
semisync_slave.cc Updated/added copyright headers 2011-06-30 17:46:53 +02:00
semisync_slave.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
semisync_slave_plugin.cc Bug#14238406 NEW COMPILATION WARNINGS WITH GCC 4.7 (-WERROR=NARROWING) 2012-06-29 13:36:01 +02:00