small fix when building in --without-debug
sql/sql_test.cc: small bug fix
This commit is contained in:
parent
d406e3fb70
commit
39be9ea7ce
@ -26,6 +26,23 @@
|
|||||||
/* Intern key cache variables */
|
/* Intern key cache variables */
|
||||||
extern "C" pthread_mutex_t THR_LOCK_keycache;
|
extern "C" pthread_mutex_t THR_LOCK_keycache;
|
||||||
|
|
||||||
|
static const char *lock_descriptions[] =
|
||||||
|
{
|
||||||
|
"No lock",
|
||||||
|
"Low priority read lock",
|
||||||
|
"Shared Read lock",
|
||||||
|
"High priority read lock",
|
||||||
|
"Read lock without concurrent inserts",
|
||||||
|
"Write lock that allows other writers",
|
||||||
|
"Write lock, but allow reading",
|
||||||
|
"Concurrent insert lock",
|
||||||
|
"Lock Used by delayed insert",
|
||||||
|
"Low priority write lock",
|
||||||
|
"High priority write lock",
|
||||||
|
"Highest priority write lock"
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
#ifndef DBUG_OFF
|
#ifndef DBUG_OFF
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -45,29 +62,11 @@ print_where(COND *cond,const char *info)
|
|||||||
DBUG_UNLOCK_FILE;
|
DBUG_UNLOCK_FILE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is for debugging purposes */
|
/* This is for debugging purposes */
|
||||||
|
|
||||||
extern HASH open_cache;
|
extern HASH open_cache;
|
||||||
extern TABLE *unused_tables;
|
extern TABLE *unused_tables;
|
||||||
|
|
||||||
static const char *lock_descriptions[] =
|
|
||||||
{
|
|
||||||
"No lock",
|
|
||||||
"Low priority read lock",
|
|
||||||
"Shared Read lock",
|
|
||||||
"High priority read lock",
|
|
||||||
"Read lock without concurrent inserts",
|
|
||||||
"Write lock that allows other writers",
|
|
||||||
"Write lock, but allow reading",
|
|
||||||
"Concurrent insert lock",
|
|
||||||
"Lock Used by delayed insert",
|
|
||||||
"Low priority write lock",
|
|
||||||
"High priority write lock",
|
|
||||||
"Highest priority write lock"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
void print_cached_tables(void)
|
void print_cached_tables(void)
|
||||||
{
|
{
|
||||||
uint idx,count,unused;
|
uint idx,count,unused;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user