diff options
author | unknown <guilhem@gbichot4.local> | 2007-09-07 15:52:25 +0200 |
---|---|---|
committer | unknown <guilhem@gbichot4.local> | 2007-09-07 15:52:25 +0200 |
commit | 69d7db7758fec5a711602b775358aa7bf4a3e744 (patch) | |
tree | 8e02b98f534e2972604d0dd3908c5609217f7bb8 /storage/maria/ma_test2.c | |
parent | 2291f932b2f26af3329ce48e08eccaaa5a41aef3 (diff) | |
download | mariadb-git-69d7db7758fec5a711602b775358aa7bf4a3e744.tar.gz |
WL#3072 - Maria Recovery
At the end of recovery, we initialize the transaction manager's
trid generator with the maximum trid seen during the REDO phase.
This ensures that trids always grow (needed for versioning),
even after a crash.
This patch is only preparation, as ma_recover() is not called
from ha_maria yet.
storage/maria/ha_maria.cc:
trnman_init() needs argument now (soon trnman_init() will rather
be done via ma_recover() and thus it will not be 0)
storage/maria/ma_recovery.c:
During the REDO phase, remember the max long trid of transactions
which we have seen (both in the checkpoint record and the
LOGREC_LONG_TRANSACTION_ID records)
storage/maria/ma_test1.c:
trnman_init() needs argument now
storage/maria/ma_test2.c:
trnman_init() needs argument now
storage/maria/trnman.c:
new argument to trnman_init() so that caller can decide which
value the generator of trids starts from.
storage/maria/trnman_public.h:
trnman_init() needs argument now
storage/maria/unittest/trnman-t.c:
trnman_init() needs argument now
Diffstat (limited to 'storage/maria/ma_test2.c')
-rw-r--r-- | storage/maria/ma_test2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ma_test2.c b/storage/maria/ma_test2.c index a69fa97d51b..596374eef80 100644 --- a/storage/maria/ma_test2.c +++ b/storage/maria/ma_test2.c @@ -96,7 +96,7 @@ int main(int argc, char *argv[]) translog_init(maria_data_root, TRANSLOG_FILE_SIZE, 0, 0, maria_log_pagecache, TRANSLOG_DEFAULT_FLAGS) || - (transactional && trnman_init())) + (transactional && trnman_init(0))) { fprintf(stderr, "Error in initialization"); exit(1); |