Commit graph

763 commits

Author SHA1 Message Date
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
Rich Prohaska
22a6b18356 use a cursor set to replace the brt_lookup function. addresses #252
git-svn-id: file:///svn/tokudb@1542 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 22:28:36 +00:00
Bradley C. Kuszmaul
debadb371c Finish removing parent_brtnode. Addresse #251.
git-svn-id: file:///svn/tokudb@1541 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 20:10:31 +00:00
Bradley C. Kuszmaul
3d64977e23 Whoops the errors weren't quite right. Addresses #246.
git-svn-id: file:///svn/tokudb@1540 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 19:58:34 +00:00
Bradley C. Kuszmaul
97e7173e5f Whoops the errors weren't quite right. Addresses #246.
git-svn-id: file:///svn/tokudb@1539 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 19:58:10 +00:00
Bradley C. Kuszmaul
faac0f364e Remoe parent_brtnode. Fixes #251
git-svn-id: file:///svn/tokudb@1538 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 19:53:50 +00:00
Rich Prohaska
fba743d22e remove the unsorted duplicates code from the pma. addresses #247
git-svn-id: file:///svn/tokudb@1537 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 19:06:05 +00:00
Bradley C. Kuszmaul
e4f197a8bc set layout_version to 1 (for 0.4.0). Addresses #118. Fixes #248.
git-svn-id: file:///svn/tokudb@1536 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 19:02:27 +00:00
Bradley C. Kuszmaul
ebd5618f15 Fix up error handling and add tests. Fixes #246.
git-svn-id: file:///svn/tokudb@1535 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 18:54:14 +00:00
Bradley C. Kuszmaul
66c9c1ef84 Fix the type in set_errcall. Addresses #246.
git-svn-id: file:///svn/tokudb@1534 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 16:30:46 +00:00
Bradley C. Kuszmaul
2e243fc71d Fix the type in set_errcall. Addresses #246.
git-svn-id: file:///svn/tokudb@1533 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 16:30:38 +00:00
Bradley C. Kuszmaul
2f3f749bd9 Fix the type in set_errcall. Addresses #246.
git-svn-id: file:///svn/tokudb@1532 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 16:29:34 +00:00
Bradley C. Kuszmaul
d436127eeb Fix the type in set_errcall. Addresses #246.
git-svn-id: file:///svn/tokudb@1531 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 16:29:12 +00:00
Bradley C. Kuszmaul
3bdd9763ca Fix the type in set_errcall. Addresses #246.
git-svn-id: file:///svn/tokudb@1530 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 15:38:41 +00:00
Bradley C. Kuszmaul
c7b854e234 Fix the type in set_errcall. Addresses #246.
git-svn-id: file:///svn/tokudb@1529 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 15:36:08 +00:00
Rich Prohaska
61757cdd76 accomodate the strange cache size settings of bdb. closes #243
git-svn-id: file:///svn/tokudb@1528 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 15:24:57 +00:00
Rich Prohaska
ae4f08d9d4 make it work correctly on bdb. closes #244
git-svn-id: file:///svn/tokudb@1527 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-07 14:29:08 +00:00
Yoni Fogel
988295b953 Closes #241
DB->get on a secondary with flag DB_GET_BOTH will now return EINVAL
instead of crashing on an assert.

Also revamped test_db_get_put_flags to test this, and made all tests run on both
BDB and tokudb

git-svn-id: file:///svn/tokudb@1502 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-04 17:53:16 +00:00
Yoni Fogel
981db5f817 Bugfix with makefile: Tokudb tests now support VERBOSE=2 again
(was running in VERBOSE=1 mode)

git-svn-id: file:///svn/tokudb@1501 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-04 17:51:10 +00:00
Yoni Fogel
c040f95712 Added c++ wrappers for get_flags
Also added errcall initializer
Addresses #240

git-svn-id: file:///svn/tokudb@1500 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-04 16:45:44 +00:00
Rich Prohaska
844ba8cf2c fix 64 bit compile
git-svn-id: file:///svn/tokudb@1482 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 21:52:09 +00:00
Rich Prohaska
aed37ec51c first cut of delboth addresses #182
git-svn-id: file:///svn/tokudb@1478 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 20:33:51 +00:00
Bradley C. Kuszmaul
b8eb150375 Get rid of gratuitous printing
git-svn-id: file:///svn/tokudb@1473 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 16:43:11 +00:00
Rich Prohaska
c83bd8f03d stubs waiting for locking to be implemented. addresses #230
git-svn-id: file:///svn/tokudb@1467 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 16:00:18 +00:00
Rich Prohaska
22fae76068 add flags to db.h for amazon.com. closes #239
git-svn-id: file:///svn/tokudb@1466 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 15:54:00 +00:00
Bradley C. Kuszmaul
f8078edf32 create rule for make clean at top level. (Getting ready to try a branch for the PMA-instead-of-hash-table experiment. Addresses #128.
git-svn-id: file:///svn/tokudb@1462 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 11:37:16 +00:00
Bradley C. Kuszmaul
aba273b645 Work on recovery bug. Addresses #27.
git-svn-id: file:///svn/tokudb@1461 c7de825b-a66e-492c-adef-691d508d4ae1
2008-01-02 11:34:49 +00:00
Rich Prohaska
5fcadb2879 send delete cmds to both children when a nonleaf node expands. closes #201
git-svn-id: file:///svn/tokudb@1443 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 17:30:19 +00:00
Rich Prohaska
8fb2191a9c add test case for BRT_DELETE dup. addresses #201
git-svn-id: file:///svn/tokudb@1442 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 16:57:25 +00:00
Rich Prohaska
b4d45cd7a8 add DbEnv::set_errcall closes #228
git-svn-id: file:///svn/tokudb@1441 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 15:00:07 +00:00
Rich Prohaska
14830de63e add Db::set_dup_compare closes #236
git-svn-id: file:///svn/tokudb@1440 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 14:04:30 +00:00
Rich Prohaska
cd8355df8a add DbTxn::abort. closes #232
git-svn-id: file:///svn/tokudb@1439 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 13:27:49 +00:00
Rich Prohaska
07424a4c64 add Db::pget addresses #235
git-svn-id: file:///svn/tokudb@1432 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-31 01:52:33 +00:00
Rich Prohaska
7aa2cb58c4 test Db::associate closes #226 closes #234
git-svn-id: file:///svn/tokudb@1431 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 16:46:07 +00:00
Rich Prohaska
0b0d470226 add Dbc::pget addresses #234
git-svn-id: file:///svn/tokudb@1430 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 14:47:13 +00:00
Rich Prohaska
7628890fe8 test Db::associate addresses #226
git-svn-id: file:///svn/tokudb@1429 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 14:17:11 +00:00
Rich Prohaska
5fa3b1621e fix 32 bit arch addresses #223
git-svn-id: file:///svn/tokudb@1422 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-30 02:39:38 +00:00
Rich Prohaska
3296a92f9c addresses #223
git-svn-id: file:///svn/tokudb@1421 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-29 23:21:53 +00:00