summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2013-06-06 15:51:36 +0300
committerMichael Widenius <monty@askmonty.org>2013-06-06 15:51:36 +0300
commit5cf5a9a1e8660cbcc60362d90cc22b63b2c05ed7 (patch)
tree82e23e4fc7509a6c8f91966f5a77e0ffff680a78 /mysys
parent64e53a0f816ec0ca4792fcefe5be18494691bfe7 (diff)
downloadmariadb-git-5cf5a9a1e8660cbcc60362d90cc22b63b2c05ed7.tar.gz
Fixed timing failure in myisam-metadata.test
mysql-test/include/wait_show_condition.inc: Print failing statement if timeout mysql-test/r/myisam-metadata.result: Updated DBUG_SYNC mysql-test/t/myisam-metadata.test: Updated DBUG_SYNC. Removed wait_show_condtion, as this is not needed when we use DBUG_SYNC This should fix timing issues with the test mysys/thr_mutex.c: Added comments sql/sql_acl.cc: atoi -> atoll() (Safety) storage/myisam/ha_myisam.cc: Send signal before mi_repair_by_sort.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/thr_mutex.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mysys/thr_mutex.c b/mysys/thr_mutex.c
index 17cda782b30..c70aa342802 100644
--- a/mysys/thr_mutex.c
+++ b/mysys/thr_mutex.c
@@ -132,7 +132,7 @@ void safe_mutex_global_init(void)
#ifdef SAFE_MUTEX_DETECT_DESTROY
safe_mutex_create_root= 0;
-#endif
+#endif /* SAFE_MUTEX_DETECT_DESTROY */
}
static inline void remove_from_active_list(safe_mutex_t *mp)
@@ -553,7 +553,7 @@ int safe_cond_timedwait(pthread_cond_t *cond, safe_mutex_t *mp,
"on %s at %s, line %d\n",
error, errno, mp->name, file, line);
}
-#endif
+#endif /* EXTRA_DEBUG */
pthread_mutex_lock(&mp->global);
/* Restore state as it was before */
mp->thread= save_state.thread;
@@ -612,7 +612,7 @@ int safe_mutex_destroy(safe_mutex_t *mp, const char *file, uint line)
error=1;
if (pthread_mutex_destroy(&mp->mutex))
error=1;
-#endif
+#endif /* __WIN__ */
mp->file= 0; /* Mark destroyed */
#ifdef SAFE_MUTEX_DETECT_DESTROY
@@ -838,7 +838,7 @@ static void print_deadlock_warning(safe_mutex_t *new_mutex,
DBUG_VOID_RETURN;
}
-#elif defined(MY_PTHREAD_FASTMUTEX)
+#elif defined(MY_PTHREAD_FASTMUTEX) /* !SAFE_MUTEX_DEFINED */
static ulong mutex_delay(ulong delayloops)
{
@@ -922,4 +922,4 @@ void fastmutex_global_init(void)
#endif
}
-#endif /* defined(MY_PTHREAD_FASTMUTEX) */
+#endif /* defined(MY_PTHREAD_FASTMUTEX) && defined(SAFE_MUTEX_DEFINED) */