diff options
author | Andrei Elkin <aelkin@mysql.com> | 2010-03-19 11:06:40 +0200 |
---|---|---|
committer | Andrei Elkin <aelkin@mysql.com> | 2010-03-19 11:06:40 +0200 |
commit | 30df18909cc2c8f657c265d0e8a0b3e5152e0990 (patch) | |
tree | c257cbcf2d3f4379d5a037b6ed0c67206ac0be43 /sql/debug_sync.h | |
parent | 3f4d8edb84a2980f636d27b40244edfa98cbdfe4 (diff) | |
download | mariadb-git-30df18909cc2c8f657c265d0e8a0b3e5152e0990.tar.gz |
Bug #51648 DBUG_SYNC_POINT is not defined on all platforms and mtr cant pre-check that
DBUG_SYNC_POINT has at least one strong limitation that it's not defined
on all platforms. It has issues cooperating with @@debug.
All in all its functionality is superseded by DEBUG_SYNC facility and
there is no reason to maintain the old less flexible one.
Fixed with adding debug_sync_set_action() function as a facility to set up
a sync-action in the server sources code and re-writing existing simulations
(found 3) to use it.
Couple of tests have been reworked as well.
The patch offers a pattern for setting sync-points in replication threads
where the standard DEBUG_SYNC does not suffice to reach goals.
Diffstat (limited to 'sql/debug_sync.h')
-rw-r--r-- | sql/debug_sync.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/debug_sync.h b/sql/debug_sync.h index f4cd0b364cf..9ac7da39d4d 100644 --- a/sql/debug_sync.h +++ b/sql/debug_sync.h @@ -50,6 +50,7 @@ extern void debug_sync_end(void); extern void debug_sync_init_thread(THD *thd); extern void debug_sync_end_thread(THD *thd); extern void debug_sync(THD *thd, const char *sync_point_name, size_t name_len); +extern bool debug_sync_set_action(THD *thd, const char *action_str, size_t len); #else /* defined(ENABLED_DEBUG_SYNC) */ |