summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <monty@mysql.com/nosik.monty.fi>2007-06-04 14:07:18 +0300
committerunknown <monty@mysql.com/nosik.monty.fi>2007-06-04 14:07:18 +0300
commitffe437be41918062a8936c6d7cc6235cccf84d2e (patch)
tree9a2b010102ab20c376686ff22a0a615a94b2fd78 /include
parent8f39541e7d8ba812d1198af5d4179ba44d6693fa (diff)
downloadmariadb-git-ffe437be41918062a8936c6d7cc6235cccf84d2e.tar.gz
Fixed that ma_test_all works with -T (simple transaction/logging support)
Some fixes from Sanja BitKeeper/etc/ignore: added storage/maria/maria_log.* include/pagecache.h: Always have enum PAGECACHE_EMPTY_PAGE available (Simpler code) storage/maria/ma_bitmap.c: Reset 'debugging' bitmap when creating new one (fixes valgrind warning) storage/maria/ma_blockrec.c: Removed duplicate (wrong) initialization Reset not initialized variable storage/maria/ma_check.c: Use right page type (Patch from Sanja) storage/maria/ma_init.c: Reset logging in maria_end() (Fixes memory leak) storage/maria/ma_loghandler.c: Add missing copyright header Added checking of duplicate calls or calls without init to translog_destroy() Don't lock mutex before destroying them (not needed as you can't use a destroyed mutex anyway) storage/maria/ma_pagecache.c: Added extra page type text Trivial indentation fixes storage/maria/ma_test1.c: Added transaction setup (Patch from Sanja) storage/maria/ma_test2.c: Added transaction setup (Patch from Sanja)
Diffstat (limited to 'include')
-rw-r--r--include/pagecache.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/pagecache.h b/include/pagecache.h
index 7951e48edb0..aa4ec60412b 100644
--- a/include/pagecache.h
+++ b/include/pagecache.h
@@ -26,10 +26,11 @@ C_MODE_START
/* Type of the page */
enum pagecache_page_type
{
-#ifndef DBUG_OFF
- /* used only for control page type changing during debugging */
+ /*
+ Used only for control page type changing during debugging. This define
+ should only be using when using DBUG.
+ */
PAGECACHE_EMPTY_PAGE,
-#endif
/* the page does not contain LSN */
PAGECACHE_PLAIN_PAGE,
/* the page contain LSN (maria tablespace page) */