Commit graph

354 commits

Author SHA1 Message Date
Bradley C. Kuszmaul
bafd365340 Build the sample offsets on a 64-bit machine (including db->associate). Addresse #48.
git-svn-id: file:///svn/tokudb@777 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 22:32:21 +00:00
Bradley C. Kuszmaul
b1506c236c Add db->associate to the set of methods we put into db.h. Addresses #48.
git-svn-id: file:///svn/tokudb@776 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 22:28:09 +00:00
Rich Prohaska
472ae66e36 test case for tokudb handle split of child crash. addresses #51
git-svn-id: file:///svn/tokudb@775 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 22:18:40 +00:00
Rich Prohaska
25163189be use BDB var to control bdb releases. addresses #49
git-svn-id: file:///svn/tokudb@774 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 22:17:51 +00:00
Rich Prohaska
7f8a7cd084 test case for tokudb handle split of child crash. addresses #51
git-svn-id: file:///svn/tokudb@772 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 20:56:56 +00:00
Rich Prohaska
3c948cdeac update the db.h for 4.4.20. addresses #49
git-svn-id: file:///svn/tokudb@771 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 20:36:02 +00:00
Rich Prohaska
8ff534e152 use kv-pair's to contain the pivot key and data. closes #37
git-svn-id: file:///svn/tokudb@770 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 18:16:45 +00:00
Rich Prohaska
2a8344c090 add tree flags to the node to drive serialization of pivots. addresses #5
git-svn-id: file:///svn/tokudb@769 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 15:22:56 +00:00
Bradley C. Kuszmaul
a9bae208c4 src/tests/test_log3.recover now works (can recover after inserting one thing into a BRT. Addresses #27. Closes #43.
git-svn-id: file:///svn/tokudb@767 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-27 10:48:31 +00:00
Bradley C. Kuszmaul
9da9621873 Stop passing DB* everywhere. Instead store it in the BRT and PMA structs. Fixes #39.
git-svn-id: file:///svn/tokudb@761 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 21:51:36 +00:00
Bradley C. Kuszmaul
7bb03b5161 Still not right. Addresses #27
git-svn-id: file:///svn/tokudb@760 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 20:09:53 +00:00
Bradley C. Kuszmaul
773308d9d2 pma-test was failing after recent changes for recovery. Addresses #27
git-svn-id: file:///svn/tokudb@759 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 20:08:36 +00:00
Bradley C. Kuszmaul
b93b2eec7d The PRI macros actually seemed the cleanest way to fix this. Fixed #38.
git-svn-id: file:///svn/tokudb@758 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 18:47:44 +00:00
Yoni Fogel
2f633ea10a Added DB_USE_ENVIRON and DB_USE_ENVIRON_ROOT
git-svn-id: file:///svn/tokudb@757 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 17:24:43 +00:00
Yoni Fogel
acf13b93bb db_create returns EINVAL on any flags. Fixes #36
git-svn-id: file:///svn/tokudb@756 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 16:28:00 +00:00
Yoni Fogel
b4e9133ffb Typo fix in assert statement.
We were checking the 'write' system call instead of the 'do_write' variable.

git-svn-id: file:///svn/tokudb@755 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 15:39:38 +00:00
Rich Prohaska
d345db0551 Addresses #19
git-svn-id: file:///svn/tokudb@754 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 15:26:47 +00:00
Yoni Fogel
3922fc2d89 Uses toku_txn_get_txnid instead of dereferencing.
Closes #35.

git-svn-id: file:///svn/tokudb@753 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 14:54:33 +00:00
Yoni Fogel
755da65cea Modified test_db_env_open_open_close
Documented in the test that BDB does not behave as expected,
Changed it to create both times (BDB was failing for reasons other than the test intended)
closes #34

git-svn-id: file:///svn/tokudb@752 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 14:24:59 +00:00
Rich Prohaska
88378bda52 search in a BRT with duplicate keys is equivalent to a DB_SET cursor get.
Addresses #19



git-svn-id: file:///svn/tokudb@748 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 18:17:01 +00:00
Rich Prohaska
c81c914777 run with -O0 on 32 bit linux creates a broken log_header.h file. Addresses #33
git-svn-id: file:///svn/tokudb@746 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 16:39:38 +00:00
Bradley C. Kuszmaul
ab3bdffaf3 Start logging an insert (but don't deal with the bt_compare issue yet. Addresses #27.
git-svn-id: file:///svn/tokudb@745 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 15:10:26 +00:00
Bradley C. Kuszmaul
0265e38eeb test_log3 now tries inserting something. The resulting log entry is bad, however. Addresses #27.
git-svn-id: file:///svn/tokudb@744 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 14:38:25 +00:00
Bradley C. Kuszmaul
da98b27ffe Improve test infrastructure. Addresses #27.
git-svn-id: file:///svn/tokudb@743 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 14:33:54 +00:00
Rich Prohaska
102719b272 logformat was crashing on RHEL5 machines. the contents of ap was being changed. addresses #33
git-svn-id: file:///svn/tokudb@742 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 14:32:52 +00:00
Bradley C. Kuszmaul
c89aaafab8 Add recovery tests to the src/tests check rule
git-svn-id: file:///svn/tokudb@741 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 14:25:56 +00:00
Bradley C. Kuszmaul
da2a69a411 Rename logdump to tdb_logprint. Closes #26.
git-svn-id: file:///svn/tokudb@736 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 23:48:34 +00:00
Bradley C. Kuszmaul
561a36213b Add len before each log entry. Closes #23.
Also gets rid of most of the manual log code.  The remaining code is tough to excise, so I'll call this closed.  Closes #32.


git-svn-id: file:///svn/tokudb@735 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 23:21:02 +00:00
Bradley C. Kuszmaul
fc6313556f Whoops wrote too much.
git-svn-id: file:///svn/tokudb@731 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 03:56:02 +00:00
Bradley C. Kuszmaul
80154022be The recovered file is exactly the same as the original file for test_log2.tdb.
(The wrong LSN was being saved in the file.  The recovered version was right.)
Addresses #27.
(Also, it was broken, and that appears to be fixed.)


git-svn-id: file:///svn/tokudb@730 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 03:50:28 +00:00
Bradley C. Kuszmaul
b6c9d1bcf3 src/tests are now quiet with a verbose option: "make VERBOSE=1" or "make VERBOSE=2". Addresses #13.
git-svn-id: file:///svn/tokudb@729 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 03:09:59 +00:00
Bradley C. Kuszmaul
2a9b3b3d40 Recovery runs for test_log2's database. But the files are not quite the same. Addresses #27
git-svn-id: file:///svn/tokudb@728 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 20:36:03 +00:00
Bradley C. Kuszmaul
e17f972093 Implement recover. This version can scan the log, but doesn't actually recover. Addresses #27
git-svn-id: file:///svn/tokudb@727 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 18:27:50 +00:00
Bradley C. Kuszmaul
85336f49f3 Get rid of the manual commit code. Addresses #32
git-svn-id: file:///svn/tokudb@726 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 17:41:02 +00:00
Bradley C. Kuszmaul
e50a0fb140 New logformat code can now dump our base test. Addresses #11.
git-svn-id: file:///svn/tokudb@725 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 17:16:26 +00:00
Bradley C. Kuszmaul
adba557e9f logdump didn't understand the magic. Addresses #20, #11
git-svn-id: file:///svn/tokudb@724 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 16:54:47 +00:00
Bradley C. Kuszmaul
ee171210b4 Fixed #20
git-svn-id: file:///svn/tokudb@720 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 02:51:45 +00:00
Bradley C. Kuszmaul
c6c1af847d fopen dumps OK, brtheader fails. Addresses #11
git-svn-id: file:///svn/tokudb@719 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 21:11:21 +00:00
Bradley C. Kuszmaul
c61666c2c3 The new log code successfully parses and dumps an fcreate record. Addresses #11
git-svn-id: file:///svn/tokudb@718 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 20:39:18 +00:00
Bradley C. Kuszmaul
dca9cde561 The new log code actually manages to parse something
git-svn-id: file:///svn/tokudb@717 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 20:35:21 +00:00
Bradley C. Kuszmaul
a579c5958c everything compiles and the tests still run.... Addresses #11
git-svn-id: file:///svn/tokudb@716 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 20:30:38 +00:00
Bradley C. Kuszmaul
23b50b671d log_code.c compiles to log_code.o. Addresses #11
git-svn-id: file:///svn/tokudb@715 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 18:45:22 +00:00
Bradley C. Kuszmaul
3795a1c38f log_code.c compiles (but lots of compiler warnings). Addresses #11
git-svn-id: file:///svn/tokudb@713 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 07:13:08 +00:00
Bradley C. Kuszmaul
ac01e9e825 More logformatting stuff. Addresses #11
git-svn-id: file:///svn/tokudb@712 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 06:46:00 +00:00
Bradley C. Kuszmaul
28d927af59 More logformatting stuff. Addresses #11
git-svn-id: file:///svn/tokudb@710 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 06:13:26 +00:00
Bradley C. Kuszmaul
12fd5638b2 Work on logformat
git-svn-id: file:///svn/tokudb@708 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 05:09:29 +00:00
Rich Prohaska
0d868bc7b4 close #17 dont put any DB_ flags in the tokudb header
git-svn-id: file:///svn/tokudb@707 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 01:05:00 +00:00
Bradley C. Kuszmaul
40912f3b88 logdump now understands newbrtnode. Addresses #11
git-svn-id: file:///svn/tokudb@706 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 21:41:57 +00:00
Bradley C. Kuszmaul
aab4d54f85 Log brtnode (but dumper cannot understand it yet.) Addresses #11
git-svn-id: file:///svn/tokudb@705 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 19:06:32 +00:00
Bradley C. Kuszmaul
9a1ed3c73b Successful dump a header for a db file with no subdb
git-svn-id: file:///svn/tokudb@704 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 18:46:43 +00:00