mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
Addresses #1737 refs[t:1737] Add a test for mega abort/mega commit.
git-svn-id: file:///svn/toku/tokudb@14671 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
40767a8701
commit
64d5d7beee
1 changed files with 8 additions and 0 deletions
|
@ -551,11 +551,15 @@ test_le_empty_apply(void) {
|
|||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_COMMIT_BOTH, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_COMMIT_BROADCAST_TXN, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
|
||||
msg_init(&msg, BRT_ABORT_ANY, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_ABORT_BOTH, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_ABORT_BROADCAST_TXN, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
}
|
||||
{
|
||||
//delete of an empty le is an empty le
|
||||
|
@ -662,11 +666,15 @@ test_le_committed_apply(void) {
|
|||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_COMMIT_BOTH, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_COMMIT_BROADCAST_TXN, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
|
||||
msg_init(&msg, BRT_ABORT_ANY, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_ABORT_BOTH, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
msg_init(&msg, BRT_ABORT_BROADCAST_TXN, msg_xids, &key, &val);
|
||||
test_le_apply(&ule_initial, &msg, &ule_expected);
|
||||
}
|
||||
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue