mariadb/storage/maria/unittest
unknown 722a8ebe5b Store maximum transaction id into control file at clean shutdown.
This can serve to maria_chk to check that trids found in rows and keys
are not too big. Also used by Recovery when logs are lost.
Options --require-control-file, --datadir, --log-dir (yes, the dashes are
inconsistent but I imitated mysqld --datadir and --maria-log-dir) for
maria_chk.
Lock control file _before_ reading its content.


storage/maria/ha_maria.cc:
  new prototype
storage/maria/ma_check.c:
  A function to find the max trid in the system (consults transaction
  manager and control file), to check tables.
storage/maria/ma_checkpoint.c:
  new prototype
storage/maria/ma_control_file.c:
  Store max trid into control file, in a backward-compatible way
  (can still read old control files).
  Parameter to ma_control_file_open(), to not create the log if it's
  missing (maria_chk needs that).
  Lock control file _before_ reading its content.
  Fix for a segfault when reading an old control file (bzero() with a
  negative second argument)
storage/maria/ma_control_file.h:
  changes to the control file module's API
storage/maria/ma_init.c:
  When Maria shuts down cleanly, store max trid into control file.
storage/maria/ma_loghandler.c:
  new prototype
storage/maria/ma_recovery.c:
  During recovery, consult max trid stored in control file, in case it is
  bigger than what we found in log (case of logs manually removed by user).
storage/maria/ma_test1.c:
  new prototype
storage/maria/ma_test2.c:
  new prototype
storage/maria/maria_chk.c:
  New option --require-control-file (abort if control file not found),
  --datadir (path for control file (and for logs if --log-dir not specified)),
  --log-dir (path for logs).
  Try to open control file when maria_chk starts.
storage/maria/maria_read_log.c:
  new prototype
storage/maria/trnman.c:
  A new function to know max trid in transaction manager
storage/maria/trnman_public.h:
  New function
storage/maria/unittest/ma_control_file-t.c:
  new prototypes. Testing storing and retrieving the max trid to/from
  control file
storage/maria/unittest/ma_test_loghandler-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_first_lsn-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_max_lsn-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_multigroup-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_multithread-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_noflush-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_nologs-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_pagecache-t.c:
  new prototype
storage/maria/unittest/ma_test_loghandler_purge-t.c:
  new prototype
2008-04-04 19:10:53 +02:00
..
CMakeLists.txt Making ma_pagecache_rwconsist_1k-t unit test build under Windows 2008-03-04 17:07:55 +01:00
lockman-t.c copyright and license info 2008-03-04 12:58:21 +01:00
lockman1-t.c copyright and license info 2008-03-04 12:58:21 +01:00
lockman2-t.c copyright and license info 2008-03-04 12:58:21 +01:00
ma_control_file-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_loghandler_examples.c copyright and license info 2008-03-04 12:58:21 +01:00
ma_maria_log_cleanup.c copyright and license info 2008-03-04 12:58:21 +01:00
ma_pagecache_consist.c copyright and license info 2008-03-04 12:58:21 +01:00
ma_pagecache_rwconsist.c Making ma_pagecache_rwconsist_1k-t unit test build under Windows 2008-03-04 17:07:55 +01:00
ma_pagecache_single.c copyright and license info 2008-03-04 12:58:21 +01:00
ma_test_all-t Make ma_test_all-t find its eggs on Darwin machines. 2008-02-21 23:05:27 +01:00
ma_test_loghandler-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_first_lsn-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_max_lsn-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_multigroup-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_multithread-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_noflush-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_nologs-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_pagecache-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_loghandler_purge-t.c Store maximum transaction id into control file at clean shutdown. 2008-04-04 19:10:53 +02:00
ma_test_recovery.expected Fix for Windows-specific bugs: 2008-02-02 00:01:31 +01:00
ma_test_recovery.pl Very small changes. 2008-03-10 18:55:33 +01:00
Makefile.am copyright and license info 2008-03-04 12:58:21 +01:00
test_file.c copyright and license info 2008-03-04 12:58:21 +01:00
test_file.h copyright and license info 2008-03-04 12:58:21 +01:00
trnman-t.c copyright and license info 2008-03-04 12:58:21 +01:00