diff options
author | sasha@mysql.sashanet.com <> | 2001-10-03 13:55:31 -0600 |
---|---|---|
committer | sasha@mysql.sashanet.com <> | 2001-10-03 13:55:31 -0600 |
commit | 20ece90471c53f406030d8106bae193f995557a2 (patch) | |
tree | c17cde775f3df9c527ba8f87a755ce2ae2cf8d04 /sql/mysql_priv.h | |
parent | 6b37cce2aef9a948983a347295315c25b0617e69 (diff) | |
download | mariadb-git-20ece90471c53f406030d8106bae193f995557a2.tar.gz |
fixed slave to clean up load data infile temp files
instrumented the server with DBUG_SYNC_POINT() macro
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r-- | sql/mysql_priv.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h index 34fae62ad56..c09c2c5e4b2 100644 --- a/sql/mysql_priv.h +++ b/sql/mysql_priv.h @@ -190,6 +190,19 @@ char* query_table_status(THD *thd,const char *db,const char *table_name); #define RAID_BLOCK_SIZE 1024 +// Sync points allow us to force the server to reach a certain line of code +// and block there until the client tells the server it is ok to go on. +// The client tells the server to block with SELECT GET_LOCK() +// and unblocks it with SELECT RELEASE_LOCK(). Used for debugging difficult +// concurrency problems +#ifdef EXTRA_DEBUG +#define DBUG_SYNC_POINT(lock_name,lock_timeout) \ + debug_sync_point(lock_name,lock_timeout) +void debug_sync_point(const char* lock_name, uint lock_timeout); +#else +#define DBUG_SYNC_POINT(lock_name,lock_timeout) +#endif + /* BINLOG_DUMP options */ #define BINLOG_DUMP_NON_BLOCK 1 |