Commit graph

1339 commits

Author SHA1 Message Date
Bradley C. Kuszmaul
22cf859734 Write leafentry code, and get things to compile. Make it more compatible with -Wconversion. Addresses #558.
git-svn-id: file:///svn/tokudb@3270 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 18:22:01 +00:00
Bradley C. Kuszmaul
7e5dfd3e5d Write leafentry code, and get things to compile. Addresses #558.
git-svn-id: file:///svn/tokudb@3269 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 18:03:03 +00:00
Bradley C. Kuszmaul
34c35d8731 {{{ybt.c}}} was trying to {{{find_db_file}}} after closing the file. Now it finds the filename first, closes the db, and then unlinks the file. Fixes #644.
git-svn-id: file:///svn/tokudb@3266 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 13:36:16 +00:00
Bradley C. Kuszmaul
3d58de68e4 Stop running {{{bug627.bdb}}}. Fixes #643.
git-svn-id: file:///svn/tokudb@3265 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 13:26:01 +00:00
Bradley C. Kuszmaul
2b6e3bbc61 Fix the test-inc-split bug (fingerprints gone wild...). Fixes #642.
git-svn-id: file:///svn/tokudb@3264 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 13:13:51 +00:00
Bradley C. Kuszmaul
16c5c5d5ae Did
{{{
svn merge -r3229:3230 https://svn.tokutek.com/tokudb/tokudb.558
}}}
and resolved the conflicts.  Now I'll get rid of the 558 branch again.
Addresses #558.


git-svn-id: file:///svn/tokudb@3262 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 13:01:20 +00:00
Bradley C. Kuszmaul
d9799d8daf The order in which the two callbacks is done has changed during pma splitting. The inter-gpma callback is done first, then the intra-gpma is done. The test had it backward. Fixes #641.
git-svn-id: file:///svn/tokudb@3260 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 12:33:44 +00:00
Yoni Fogel
d2fee86b73 Closes #638
Port of toku__lt_init_full_query to OSX's somewhat broken compiler.

git-svn-id: file:///svn/tokudb@3257 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 01:48:33 +00:00
Yoni Fogel
bfcee0fe5f Addresses #571
Lock tree further disentangled from transactions.
Now uses a function to compare txnids all the time instead of direct
integer compare, also removed asserts checking for them to be non 0,
since 0 is a valid TXN id.

git-svn-id: file:///svn/tokudb@3256 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-04 01:25:01 +00:00
Bradley C. Kuszmaul
648535fdeb {{{test-recover3.tdb}}} now runs. Addresses #558.
git-svn-id: file:///svn/tokudb@3255 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 23:00:59 +00:00
Bradley C. Kuszmaul
07591bd14a {{{test-recover3.tdb}}} doesn't crash during recovery now. (It crashes because it recovered to the wrong state.) Addresses #558.
git-svn-id: file:///svn/tokudb@3254 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 22:27:32 +00:00
Bradley C. Kuszmaul
9e82871d21 Clean up the makefiles a little more. Addresses #630.
git-svn-id: file:///svn/tokudb@3252 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 20:41:53 +00:00
Bradley C. Kuszmaul
b8940404c0 Make all those tests run again. Fixes #635.
git-svn-id: file:///svn/tokudb@3250 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 20:24:47 +00:00
Bradley C. Kuszmaul
7481d53f47 Add another stress test for the gpma. Addresses #558.
git-svn-id: file:///svn/tokudb@3245 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 18:53:34 +00:00
Rich Prohaska
5b9d12914e toku_verify_gpma removed as it is part of code verification. closes #633
git-svn-id: file:///svn/tokudb@3240 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 17:11:43 +00:00
Rich Prohaska
8b9ec931ec another small mempool. addresses #632
git-svn-id: file:///svn/tokudb@3238 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 13:49:16 +00:00
Bradley C. Kuszmaul
f293366ddc Fix the undersized buffer pool problem. Fixes #632. Addresses #580.
git-svn-id: file:///svn/tokudb@3237 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 13:13:21 +00:00
Bradley C. Kuszmaul
02e0667890 Create a test for #632. Addresses #632.
git-svn-id: file:///svn/tokudb@3234 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 13:02:15 +00:00
Bradley C. Kuszmaul
7075d9fe53 Fix up Makefile and svn:ignore properties. Addresess #630.
I did:
{{{
svn merge -r3229:3230 https://svn.tokutek.com/tokudb/tokudb.558
}}}


git-svn-id: file:///svn/tokudb@3231 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 03:12:09 +00:00
Rich Prohaska
91376533d9 port to 32 bit machines. addresses #631
git-svn-id: file:///svn/tokudb@3227 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-03 00:13:34 +00:00
Bradley C. Kuszmaul
83d416fa09 Merge the 558 branch back to the main with
{{{
svn merge -r3061:3225 https://svn.tokutek.com/tokudb/tokudb.558
}}}

Fixes #630.
Addresses #558.


git-svn-id: file:///svn/tokudb@3226 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-02 23:40:36 +00:00
Yoni Fogel
48d81cd4fc Make build should be faster now,
ignoring the non-fast version of the lock trees

git-svn-id: file:///svn/tokudb@3220 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-02 20:24:40 +00:00
Bradley C. Kuszmaul
07b339f32c A test for #627. This test doesn't show anything wrong. Addresses #627.
git-svn-id: file:///svn/tokudb@3219 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-02 18:53:11 +00:00
Yoni Fogel
28fa385876 Addresses #606
Lock escalation for reads.
Also, bugfix with lock escalation for writes, we sometimes forgot to set 
OUT_OF_LOCKS to FALSE

git-svn-id: file:///svn/tokudb@3217 c7de825b-a66e-492c-adef-691d508d4ae1
2008-04-02 17:53:17 +00:00
Yoni Fogel
7b51209b7b Addresses #606
Range trees now return ranges in sorted order

git-svn-id: file:///svn/tokudb@3189 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-31 15:18:59 +00:00
Yoni Fogel
10aab4497c Addresses #611
Fixed a bug in tokudb.
In a NO_DUP database, if we have a cursor pointing to an element,
and then insert (overwrite) an element with the same key but larger (as per cmp func)
data, then DB_NEXT should NOT return the newly inserted element.. it should
return the element with the next larger key.

The opposite error also existed for DB_PREV.

We rewrite the flag of DB_NEXT/DB_PREV to DB_NEXT_NODUP and DB_PREV_NODUP
when there are no duplicates.

git-svn-id: file:///svn/tokudb@3155 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-28 21:44:33 +00:00
Bradley C. Kuszmaul
bc4b389304 More getting brt-test to compile. Addresses #558.
git-svn-id: file:///svn/tokudb@3154 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-28 20:49:50 +00:00
Yoni Fogel
3c55e94a95 Addresses #583
We were reading error codes of malloc incorrectly.
errno is not valid unless you know you had an error.

git-svn-id: file:///svn/tokudb@3138 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-27 21:22:57 +00:00
Yoni Fogel
cb0cf2a8f6 Addresses #567
Fixes memory leak (in a test)

git-svn-id: file:///svn/tokudb@3136 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-27 16:36:25 +00:00
Yoni Fogel
1954d2ca8f Closes #567
Merge all of ticket 567 into trunk

git-svn-id: file:///svn/tokudb@3134 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-27 16:26:15 +00:00
Bradley C. Kuszmaul
f19443d93e Make the install script a little more robust. Addresses #558.
git-svn-id: file:///svn/tokudb@3048 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-24 20:36:51 +00:00
Bradley C. Kuszmaul
4dcfdb70e1 A bdb-layer test for #558. Addresses #558.
git-svn-id: file:///svn/tokudb@3041 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-24 14:06:22 +00:00
Bradley C. Kuszmaul
74947caa9b Another abort test. Addresses #11.
git-svn-id: file:///svn/tokudb@3040 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-24 14:06:02 +00:00
Bradley C. Kuszmaul
0f57792a0c Another abort test. Addresses #11.
git-svn-id: file:///svn/tokudb@3039 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-24 13:59:14 +00:00
Bradley C. Kuszmaul
943946edd4 Another test case for transaction abort. Addresses #11.
git-svn-id: file:///svn/tokudb@3038 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-24 13:55:52 +00:00
Bradley C. Kuszmaul
b8942e64d9 Fix {{{test_log8.bdb}}}, {{{test_log9.bdb}}}, {{{test_log10.bdb}}}. Fixes #584.
git-svn-id: file:///svn/tokudb@3036 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-24 13:45:29 +00:00
Bradley C. Kuszmaul
efa4dfb879 Don't use {{{TOKUDB_OUT_OF_LOCKS}}} outside of the {{{#ifdef TOKUDB}}}. Fixes #573.
git-svn-id: file:///svn/tokudb@3010 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-22 00:08:15 +00:00
Bradley C. Kuszmaul
e509ed0891 Fix valgrind problem in {{{test_abort2.tdb}}}. Addresses #556.
git-svn-id: file:///svn/tokudb@3008 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 22:48:38 +00:00
Bradley C. Kuszmaul
8d8060519f Clean up test_archive2. Addresses #75, #392.
git-svn-id: file:///svn/tokudb@3007 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 21:19:07 +00:00
Bradley C. Kuszmaul
6a838c09d9 Finish {{{DB_ENV->log_archive}}}, honoring the oldest live txn. Addresses #83. Fixes #75, #392.
git-svn-id: file:///svn/tokudb@3006 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 21:13:58 +00:00
Bradley C. Kuszmaul
98a9cfee7d Finish {{{DB_ENV->log_archive}}}, honoring the oldest live txn. Addresses #83. Fixes #75, #392.
git-svn-id: file:///svn/tokudb@3005 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 21:13:50 +00:00
Bradley C. Kuszmaul
0c1af47865 Add the first two tests for {{{DB_ENV->log_archive}}}. Fix up some memory leaks. Add {{{LSN*}}} to all the {{{toku_log_*}}} functions so that {{{toku_logger_txn_begin}}} can use the LSN as a txnid. Addresses #75, #83, #392.
git-svn-id: file:///svn/tokudb@3004 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 21:02:30 +00:00
Bradley C. Kuszmaul
cbcf5bf5e7 {{{DB_ENV->log_archive}}} understands checkpoints, but not live transactions. Addresses #75, #83, #392.
git-svn-id: file:///svn/tokudb@3003 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 20:43:39 +00:00
Bradley C. Kuszmaul
70bb010995 make {{{DB_ENV->log_archive}}} return something (but it's not quite right). Clean up the serialization of the brt header. Fix up {{{DB_ENV->txn_checkpoint}}} (but it's not quite right). Addresses #75, #83, #392.
git-svn-id: file:///svn/tokudb@3000 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 19:40:32 +00:00
Yoni Fogel
75229f904e Updated test to use new
error code for running out of locks

git-svn-id: file:///svn/tokudb@2994 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 17:42:20 +00:00
Bradley C. Kuszmaul
2d7c5ba201 Fix MAX_PATHLEN_TO_ROOT bug. Fixes #570.
git-svn-id: file:///svn/tokudb@2991 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-21 12:47:55 +00:00
Bradley C. Kuszmaul
401eb1d0bc test_abort2 works up until a lock tree problem. I think the test and abort mechanisms are right now. I'll close #556 but file a new bug (#569). Fixes #556. Addresses #569.
git-svn-id: file:///svn/tokudb@2982 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-20 22:01:57 +00:00
Yoni Fogel
0880a59279 Addresses #557
Addresses #554
When lock trees close before transactions do (that touch them), we can crash
or have memory corruption.

Now, when lock trees close, they alert all transactions that they have disappeared.

git-svn-id: file:///svn/tokudb@2974 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-20 15:14:46 +00:00
Rich Prohaska
ae797a69f5 simple test case for commit after db close. adresses #554
git-svn-id: file:///svn/tokudb@2973 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-20 14:17:18 +00:00
Rich Prohaska
dfc61222d0 add man/texi to the build list. closes #563
git-svn-id: file:///svn/tokudb@2964 c7de825b-a66e-492c-adef-691d508d4ae1
2008-03-19 23:56:35 +00:00