Bradley C. Kuszmaul
5c52e7c64a
Separate some of the test helpers from brt.c to brt-test-helpers.c. Addresses #472 .
...
git-svn-id: file:///svn/tokudb@2556 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-05 18:34:32 +00:00
Bradley C. Kuszmaul
4e04fed3e6
Reduce symbol visibility. Fixes #467 .
...
git-svn-id: file:///svn/tokudb@2541 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-05 11:54:58 +00:00
Bradley C. Kuszmaul
a29e5b60d6
I had broken the compile. Fixed. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2540 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-05 09:52:35 +00:00
Rich Prohaska
759f3785a8
malloc temps in the deserialize_from function to fit within the mysql thread stack. close #464
...
git-svn-id: file:///svn/tokudb@2526 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-04 21:31:01 +00:00
Rich Prohaska
7d6663e214
malloc temps in smooth region to fit within the mysql thread stack. close #441
...
git-svn-id: file:///svn/tokudb@2525 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-04 21:27:15 +00:00
Bradley C. Kuszmaul
0b5e897d27
brt2 work
...
git-svn-id: file:///svn/tokudb@2516 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-03 23:24:04 +00:00
Bradley C. Kuszmaul
7ebf6bf352
Logging improvements. Mostly fixes #27 . Addresses #455 , #27 .
...
git-svn-id: file:///svn/tokudb@2471 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-29 20:47:11 +00:00
Rich Prohaska
4e40b47bb0
restore O2
...
git-svn-id: file:///svn/tokudb@2449 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-28 12:37:19 +00:00
Bradley C. Kuszmaul
56f7445fff
One of the tests found a bug in the logging. (Logged key twice instead of key,data pair). Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2438 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-27 19:23:40 +00:00
Bradley C. Kuszmaul
957b081486
delete aborts work right now. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2437 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-27 15:58:10 +00:00
Bradley C. Kuszmaul
dd4a6feabe
Improvements to rollback. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2435 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-27 11:05:19 +00:00
Bradley C. Kuszmaul
cb204011d6
Improvements to rollback. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2434 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-27 09:05:58 +00:00
Bradley C. Kuszmaul
b0e3bf13ba
halfway broken rollback for delete. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2431 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-27 07:14:03 +00:00
Bradley C. Kuszmaul
6105ff5838
Rollback during abort. Fixes #448 .
...
git-svn-id: file:///svn/tokudb@2423 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-26 17:47:40 +00:00
Bradley C. Kuszmaul
fe98679a2a
Forgot to commit something. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2422 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-26 15:54:14 +00:00
Bradley C. Kuszmaul
2eaeb874ed
Separate the code for generating rollbacks and recover log entries. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2420 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-26 15:51:15 +00:00
Rich Prohaska
d68e94a52e
fix the extra node ref. address #431
...
git-svn-id: file:///svn/tokudb@2416 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-26 12:17:22 +00:00
Bradley C. Kuszmaul
461f9e0010
Typo. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2409 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-25 23:28:49 +00:00
Bradley C. Kuszmaul
712fcc5da1
Many things:
...
Make txn->abort work without bombing out for {{{test_txn_abort5}}} one case. Fixes #431 .
Start writing {{{test_txn_abort6}}}. Addresses #443 .
Try to write a test for #399 and #400 , but haven't managed to reproduce the problem. Addresses #399 , #400 .
Write a test for #332 . Addresses #332 .
git-svn-id: file:///svn/tokudb@2406 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-25 22:46:48 +00:00
Rich Prohaska
aa359efbe5
don't sign extend the unprintables
...
git-svn-id: file:///svn/tokudb@2370 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-21 20:14:06 +00:00
Rich Prohaska
f29f26f2fd
close #429
...
git-svn-id: file:///svn/tokudb@2368 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-21 14:32:58 +00:00
Rich Prohaska
bca10bc03a
fix the test_db_txn_lock test. close #422
...
git-svn-id: file:///svn/tokudb@2343 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-19 12:46:49 +00:00
Rich Prohaska
4565645290
turn assert into an error return. close #407
...
git-svn-id: file:///svn/tokudb@2307 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-15 19:44:48 +00:00
Bradley C. Kuszmaul
a1dfeebb13
Rollback is working a little better. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2294 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-14 19:23:25 +00:00
Rich Prohaska
c88948e8ca
fix for crash at netapp. addresses #399
...
git-svn-id: file:///svn/tokudb@2285 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-14 00:02:59 +00:00
Yoni Fogel
44894c394a
Addresses #368
...
Deals with NULL transactions in an INIT_TXN environment.
Does not deal with NULL txn cursors yet.
Also adds DB_AUTO_COMMIT
git-svn-id: file:///svn/tokudb@2252 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 20:00:19 +00:00
Yoni Fogel
75b96f85ab
brt_cursor_not_set made not static so
...
we can use it in toku_c_get.
git-svn-id: file:///svn/tokudb@2249 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 16:29:58 +00:00
Rich Prohaska
05c5502b7d
fix namespace pollution
...
git-svn-id: file:///svn/tokudb@2248 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 15:27:15 +00:00
Rich Prohaska
03256cb5ab
fix the DB_NEXT_DUP code. close #376
...
git-svn-id: file:///svn/tokudb@2241 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 20:27:41 +00:00
Bradley C. Kuszmaul
b345dd3947
Note that pma_search might as well be written recursively. Addresses #374 .
...
git-svn-id: file:///svn/tokudb@2237 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 15:26:10 +00:00
Bradley C. Kuszmaul
f93c6fb185
Fix #374 , replace use a loop instead of recursion in {{{distribute_data}}}.
...
git-svn-id: file:///svn/tokudb@2236 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 14:59:43 +00:00
Rich Prohaska
2695ac8014
fix get_both_range on nodup trees. closes #373
...
git-svn-id: file:///svn/tokudb@2227 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-09 21:20:22 +00:00
Rich Prohaska
921e224de1
fix build issue with db.h_4_6
...
git-svn-id: file:///svn/tokudb@2218 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-09 11:48:24 +00:00
Yoni Fogel
5fad7d0bbd
Addresses #350
...
DB->get, DB->pget, DBC->c_get, DBC->c_pget almost done.
Remainder: associated dbs need DBC->c_del and DB->del to lock properly.
Rest is done.
Associated dbs (using any of the above calls) may get stuck half way due to locking.
We are not currently optimizing for them, but it will lock everything necessary
(Once DB->del and DB->c_del lock properly)
Some tests are written, but not all of them.
Currently test_db_txn_locks.c fails due to abort not working properly.
git-svn-id: file:///svn/tokudb@2210 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-09 00:00:02 +00:00
Rich Prohaska
c6875ae990
set the data and length to 0 for zero length things. dbt's with malloc flags are unchanged. closes #367
...
git-svn-id: file:///svn/tokudb@2209 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 22:53:08 +00:00
Bradley C. Kuszmaul
10062269c7
Make each rollback code take a list of arguments rather than a single logentry. Makes it easier to notice that I've got unused variables. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2206 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 22:16:02 +00:00
Bradley C. Kuszmaul
2cbb1dbad0
On sync, if there is a parent, put the rollback info into the parent. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2200 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 20:03:53 +00:00
Bradley C. Kuszmaul
d9f3060f83
Rework the way transactions ids are used in the log (xid's on messages are used when inserting something into a leaf.) Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2199 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 19:54:00 +00:00
Rich Prohaska
a0f0e6d203
avoid performance collapse using db-benchmark-test. closes #340
...
git-svn-id: file:///svn/tokudb@2194 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 18:44:50 +00:00
Bradley C. Kuszmaul
09a3da9a49
Make all.recover work again. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2168 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 04:34:12 +00:00
Bradley C. Kuszmaul
4abb5ba31d
Use toku_assert instead of assert. Addresses #354 .
...
git-svn-id: file:///svn/tokudb@2167 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 03:17:38 +00:00
Bradley C. Kuszmaul
603884a156
Create {{{toku_assert}}} ( Fixes #354 ). Make the primes test actually work ( Fixes #355 ). Addresses #277 .
...
git-svn-id: file:///svn/tokudb@2153 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 16:35:39 +00:00
Rich Prohaska
393dc9799e
fix the build. ydb does not belong in newbrt.
...
git-svn-id: file:///svn/tokudb@2141 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 01:26:35 +00:00
Yoni Fogel
f48cbb7f3a
PRId64 error fixed
...
git-svn-id: file:///svn/tokudb@2138 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 20:09:23 +00:00
Bradley C. Kuszmaul
fe11eae49a
Try to recover with deletes. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@2133 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 19:28:01 +00:00
Bradley C. Kuszmaul
e76cdc2b0a
Delete command must be duplicated. Fixes #201 .
...
git-svn-id: file:///svn/tokudb@2132 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 19:27:25 +00:00
Rich Prohaska
d778463602
set -O2. fix 64bit build
...
git-svn-id: file:///svn/tokudb@2107 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 01:55:16 +00:00
Yoni Fogel
3cdb56594f
Addresses #293 Addresses #307
...
A compiler directive to make compilation sweeter
git-svn-id: file:///svn/tokudb@2105 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 22:30:01 +00:00
Bradley C. Kuszmaul
eeaef7284a
Add XID (Addresses #242 ), and also fix the problem where deletes were sneaking around inserts (Fixes #332.)
...
git-svn-id: file:///svn/tokudb@2098 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 18:25:23 +00:00
Bradley C. Kuszmaul
016a5b8fea
Change BRT_CMD to be a pointer instead (struct brt_cmd *) instead of a struct (struct brt_cmd). Addresses #242 .
...
git-svn-id: file:///svn/tokudb@2072 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 15:04:22 +00:00