Commit graph

900 commits

Author SHA1 Message Date
Bradley C. Kuszmaul
d0e64cf702 Log and recover for note splits works a little better. Addresses #27
git-svn-id: file:///svn/tokudb@1691 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 14:13:21 +00:00
Bradley C. Kuszmaul
89985a3175 Improve logging. Addresses #27.
git-svn-id: file:///svn/tokudb@1690 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-16 13:50:23 +00:00
Yoni Fogel
55d1be5b65 OSX does not appear to have fmemopen. Making note
git-svn-id: file:///svn/tokudb@1681 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 23:45:00 +00:00
Bradley C. Kuszmaul
9566acc430 Log node splits a little better. Addresses #27
git-svn-id: file:///svn/tokudb@1679 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 21:50:45 +00:00
Rich Prohaska
0a4c6f53ad free -> toku_free. addresses #275
git-svn-id: file:///svn/tokudb@1678 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 21:04:46 +00:00
Bradley C. Kuszmaul
6e5d5485ab Get rid of calls to free. Should use toku_free. Fixes #275.
git-svn-id: file:///svn/tokudb@1677 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 20:15:06 +00:00
Rich Prohaska
86f9b2268f fix test_db_thread_secondary. addresses #167
git-svn-id: file:///svn/tokudb@1675 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 18:37:10 +00:00
Rich Prohaska
5e13febe7c multithread check DBT.flags
git-svn-id: file:///svn/tokudb@1674 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 18:10:57 +00:00
Rich Prohaska
a596956318 need -lpthread to get mutex locks to work right (not recursive). addresses #167
git-svn-id: file:///svn/tokudb@1673 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 17:14:23 +00:00
Rich Prohaska
ca7d898e76 test multithread db->pget. addresses #167
git-svn-id: file:///svn/tokudb@1672 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 15:50:15 +00:00
Rich Prohaska
1de897e0f9 check that multithread db->get uses MALLOC+REALLOC+USERMEM. closes #167
git-svn-id: file:///svn/tokudb@1671 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 14:59:36 +00:00
Rich Prohaska
94be297db1 add big ydb lock. addresses #7
git-svn-id: file:///svn/tokudb@1670 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-15 13:04:10 +00:00
Rich Prohaska
0ac7cfc8e4 add Db::set_errpfx. closes #272
git-svn-id: file:///svn/tokudb@1654 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-14 21:30:00 +00:00
Rich Prohaska
24a344be36 add #include guard. closes #269
git-svn-id: file:///svn/tokudb@1653 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-14 21:29:09 +00:00
Yoni Fogel
4629d955af Updated description of lock tree
git-svn-id: file:///svn/tokudb@1652 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-14 20:23:29 +00:00
Yoni Fogel
907df64d8b Closes #270
Closes #271
Bugfixes in tokudb_load:
Now supports -T (text) option along with other command line parameters
Now supports -T option without newline at end of file (i.e. last data item ends with end of file)


git-svn-id: file:///svn/tokudb@1651 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-14 20:13:30 +00:00
Bradley C. Kuszmaul
1b6c9ebca8 Undo pma movements. Addresses #253.
git-svn-id: file:///svn/tokudb@1630 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-13 05:52:43 +00:00
Bradley C. Kuszmaul
6ec256f68b Extend the scope of the abort1 test
git-svn-id: file:///svn/tokudb@1629 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-13 03:53:10 +00:00
Bradley C. Kuszmaul
982644cc0e test_abort1.tdb runs doesn't leak memory. Addresses #253.
git-svn-id: file:///svn/tokudb@1625 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-12 13:25:36 +00:00
Bradley C. Kuszmaul
ae00985a15 test_abort1.tdb runs. Addresses #253.
git-svn-id: file:///svn/tokudb@1621 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-12 12:21:07 +00:00
Rich Prohaska
4e3af7f169 test DbEnv::set_error_stream. addresses #255
git-svn-id: file:///svn/tokudb@1612 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-12 00:07:10 +00:00
Rich Prohaska
a5ab8916b0 implement Db::set_error_stream. closes #257
git-svn-id: file:///svn/tokudb@1610 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 22:37:05 +00:00
Bradley C. Kuszmaul
d06d558776 Get abort to run a little bit. Addresses #253.
git-svn-id: file:///svn/tokudb@1608 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 22:24:43 +00:00
Rich Prohaska
9bd88bb01d add fifo-test addresses #249
git-svn-id: file:///svn/tokudb@1607 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 22:18:39 +00:00
Rich Prohaska
4b52108a21 making cursors sticky is difficult. need the stateless cursor implementation. addresses #259
git-svn-id: file:///svn/tokudb@1604 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 16:24:43 +00:00
Rich Prohaska
d3239fc444 implement DbEnv::set_error_stream closes #255
git-svn-id: file:///svn/tokudb@1603 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 16:14:54 +00:00
Rich Prohaska
3c630d8476 test next/prev_dup/nodup. closes #259
git-svn-id: file:///svn/tokudb@1602 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 15:21:53 +00:00
Rich Prohaska
a9e1d29612 add Db::fd closes #231
git-svn-id: file:///svn/tokudb@1601 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 14:38:49 +00:00
Rich Prohaska
8bed771536 replace hashtables with fifos. addresses #249
git-svn-id: file:///svn/tokudb@1600 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 14:03:33 +00:00
Rich Prohaska
0984623c63 save the hashtables. addresses #250
git-svn-id: file:///svn/tokudb@1598 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 12:37:03 +00:00
Bradley C. Kuszmaul
4de66511b4 Write an abort test. Addresses #253.
git-svn-id: file:///svn/tokudb@1590 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 03:44:21 +00:00
Bradley C. Kuszmaul
2d734fa8b1 Reorganize how rollback and recovery are organized into files. Fixes #253.
git-svn-id: file:///svn/tokudb@1589 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-11 03:09:14 +00:00
Rich Prohaska
e7e5c4154a simplify the cursor delete since the pivot flags are gone. addresses #250
git-svn-id: file:///svn/tokudb@1588 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 20:07:42 +00:00
Rich Prohaska
16bcec861e implement and test cursor->count. closes #258
git-svn-id: file:///svn/tokudb@1587 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 19:42:08 +00:00
Rich Prohaska
184c610dbb add cursor->c_count. addresses #258
git-svn-id: file:///svn/tokudb@1586 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 16:29:45 +00:00
Rich Prohaska
4374eb974f add cursor next_dup, next_nodup, prev_dup, and prev_nodup. addresses #259
git-svn-id: file:///svn/tokudb@1585 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 16:10:06 +00:00
Bradley C. Kuszmaul
37762ee7ff Stubs exist for all the rollback operations. Addresses #253.
git-svn-id: file:///svn/tokudb@1584 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 13:41:58 +00:00
Rich Prohaska
48d957cdc4 add some more cursor ops addresses #259
git-svn-id: file:///svn/tokudb@1583 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 12:51:09 +00:00
Rich Prohaska
ec6350ea4d next_dup and prev_dup addresses #259
git-svn-id: file:///svn/tokudb@1574 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-10 01:19:13 +00:00
Rich Prohaska
24f0c202a5 try to implement cursor.count, cursor.next_nodup, and cursor.prev_nodup on top of the more basic cursor operations. addresses #258 #259
git-svn-id: file:///svn/tokudb@1573 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-09 22:26:47 +00:00
Bradley C. Kuszmaul
06dfd4f0a4 Work on transactions rollback. Also Fixes #254. Addresess #253.
git-svn-id: file:///svn/tokudb@1572 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-09 19:58:46 +00:00
Rich Prohaska
12c0d21999 fixup the pma split key test
git-svn-id: file:///svn/tokudb@1571 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-09 14:52:07 +00:00
Bradley C. Kuszmaul
b938b597c4 If fsync fails on a log commit, panic the DB. (We don't know if the transaction committed or failed without doing recovery.)
Start work on saving the undo records in main memory for rollback.
Addresses #27 (recovery) 
Addresses #253 (rollback)


git-svn-id: file:///svn/tokudb@1561 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 22:18:42 +00:00
Rich Prohaska
3a29cecefb remove pivot flags. addresses #250
git-svn-id: file:///svn/tokudb@1560 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 21:43:11 +00:00
Rich Prohaska
62da09d733 simplify. addresses #247 #250
git-svn-id: file:///svn/tokudb@1559 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 21:03:17 +00:00
Rich Prohaska
f8f1691280 remove pivot flags. addresses #247
git-svn-id: file:///svn/tokudb@1558 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 21:02:36 +00:00
Rich Prohaska
54bf735ad2 fix cxx/tests build problems. addresses #246
git-svn-id: file:///svn/tokudb@1556 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 17:51:24 +00:00
Rich Prohaska
fa00e966be fix the set_errcall signature. addresses #246
git-svn-id: file:///svn/tokudb@1552 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 12:36:08 +00:00
Rich Prohaska
bf90221f59 fix the type in set_errcall in all db.h files. addresses #246
git-svn-id: file:///svn/tokudb@1551 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 12:32:28 +00:00
Rich Prohaska
9bf84aa53b make do_error_all_cases static
git-svn-id: file:///svn/tokudb@1550 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-08 12:27:49 +00:00