From 64d5d7beee348a8019c7e8614a94478d4d1d1dfb Mon Sep 17 00:00:00 2001 From: Yoni Fogel Date: Tue, 16 Apr 2013 23:58:02 -0400 Subject: [PATCH] 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 --- newbrt/tests/test-leafentry-nested.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/newbrt/tests/test-leafentry-nested.c b/newbrt/tests/test-leafentry-nested.c index b1e093ddaee..5432ae490ec 100644 --- a/newbrt/tests/test-leafentry-nested.c +++ b/newbrt/tests/test-leafentry-nested.c @@ -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); } {