diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-10-30 19:30:57 +0200 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-10-30 19:30:57 +0200 |
commit | 9b012db53eb46ad665bed15b307727c4cf497f3e (patch) | |
tree | 74e8a3d4a6ec76bb081729f3e74eaa8a462d1b4a /sql/sql_test.cc | |
parent | a5fcadce654f6b48eb2dd06c9c7fbab5dcbbf43c (diff) | |
download | mariadb-git-9b012db53eb46ad665bed15b307727c4cf497f3e.tar.gz |
small fix when building in --without-debug
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index 5aac972e0bb..b3bf47e7fd2 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -26,6 +26,23 @@ /* Intern key cache variables */ 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 void @@ -45,29 +62,11 @@ print_where(COND *cond,const char *info) DBUG_UNLOCK_FILE; } } - /* This is for debugging purposes */ extern HASH open_cache; 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) { uint idx,count,unused; |