Yoni Fogel
31cfeaf166
Addresses #350
...
Effectively eliminated 'non cursor' gets.
Internally (in brt) all gets were cursor gets already.
To save future locking code, and reduce complexity of ydb,
all DB->get calls use cursor gets as subfunctions.
git-svn-id: file:///svn/tokudb@2195 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 19:06:39 +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
Yoni Fogel
a53ca2c75e
Addresses #350
...
Only uses lock tree if both txns and locking system are enabled.
If TXN only is enabled, it implies only one txn at a time: no lock tree needed.
If LOCK only is enabled, it implies no txns, therefore only ephemeral locks needed (lock tree not needed)
If neither are enabled, clearly lock tree is not needed.
git-svn-id: file:///svn/tokudb@2193 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 18:40:36 +00:00
Yoni Fogel
0f39ff8a04
Addresses #350
...
Fixed some bugs in test_db_txn_locks
to port it over to BDB.
git-svn-id: file:///svn/tokudb@2192 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 18:28:43 +00:00
Yoni Fogel
e8a6e94d10
Addresses #350
...
Bugfix with releasing locks/unlocking a transaction.
DBC->c_get (DB_SET)
and DB->put (DB_YESOVERWRITE) now perform locking
Secondary dbs not included (behavior unknown).
Several tests added for c_get (DB_SET) and DB->put(DB_YESOVERWRITE).
Lock tree only created if INIT_TXN is enabled during env creation.
git-svn-id: file:///svn/tokudb@2191 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 18:00:26 +00:00
Yoni Fogel
4b9a134152
Port to OSX for some tests.
...
git-svn-id: file:///svn/tokudb@2187 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 15:16:33 +00:00
Yoni Fogel
7ba48c085f
standardized naming of a test.
...
git-svn-id: file:///svn/tokudb@2186 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 15:01:17 +00:00
Yoni Fogel
113b1e094e
Modified test-weakxaction.c to work with tokudb.
...
Test does not yet pass due to locking not fully implemented.
git-svn-id: file:///svn/tokudb@2171 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-08 05:24:29 +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
Rich Prohaska
520eec42ce
test a method to increase coverage of utilities using a makefile to check exit codes
...
git-svn-id: file:///svn/tokudb@2157 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 19:06:12 +00:00
Rich Prohaska
fab328719f
fix the build. addresses #277
...
git-svn-id: file:///svn/tokudb@2156 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 17:17:43 +00:00
Rich Prohaska
7d28f43da1
put toku_assert.o into libdb.so. addresses #354
...
git-svn-id: file:///svn/tokudb@2155 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 17:12:36 +00:00
Rich Prohaska
c5c3a7a172
improve cxx coverage addresses #277
...
git-svn-id: file:///svn/tokudb@2154 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 16:45:58 +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
Yoni Fogel
6644073d36
Addresses 293
...
Bugfix with toku_lt_set_txn_add_lt_callback
Had the error case backwards.
git-svn-id: file:///svn/tokudb@2142 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-07 04:39:18 +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
ce5b3e6465
Addresses #350
...
Integrated lock tree into the transactions.
Allocated on create
unlocked on abort/commit
transaction keeps track of which lock trees it owns locks in
Started working on integrating c_get functions.
Modified locktree API to make it easier to use both dupsort and nondup dbs
Fixed tests to work with new locktree API.
git-svn-id: file:///svn/tokudb@2140 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 23:05:36 +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
Yoni Fogel
1e2aaf51c9
Addresses #346
...
Modified svn:ignore properties to ignore unneeded information.
git-svn-id: file:///svn/tokudb@2136 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 20:04:19 +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
Yoni Fogel
01d51167d6
Bugfix in tests makefile.
...
git-svn-id: file:///svn/tokudb@2131 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 19:10:47 +00:00
Yoni Fogel
55191e5757
Addresses #307 Addresses #293
...
Modified makefiles to clean up install process
Added tests
Added hash table to store list of db's that a tx has access to.
git-svn-id: file:///svn/tokudb@2130 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 19:05:38 +00:00
Vincenzo Liberatore
b28b82a1e1
Addresses #337
...
Adds tests for write lock
git-svn-id: file:///svn/tokudb@2129 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 18:31:34 +00:00
Yoni Fogel
834cc7892b
Addresses #293 Addresses #307
...
Addresses #337
Makefile modifications, test modifications,
Lock tree is better integraded with db.
git-svn-id: file:///svn/tokudb@2126 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 17:23:38 +00:00
Vincenzo Liberatore
3a39aebe1f
Addresses #337
...
Fixes the tests with a bound on the number of ranges, and fixes a bug
in lock tree unlock
git-svn-id: file:///svn/tokudb@2125 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 17:11:12 +00:00
Yoni Fogel
7b793edcee
Addresses #288
...
Added test of get_size to get code coverage again to 100%
git-svn-id: file:///svn/tokudb@2124 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 16:27:17 +00:00
Yoni Fogel
2051f5180d
git-svn-id: file:///svn/tokudb@2123 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 16:24:44 +00:00
Yoni Fogel
d67059511a
Closes #343
...
Lock tree freed during db->close.
git-svn-id: file:///svn/tokudb@2122 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 16:20:55 +00:00
Rich Prohaska
22edd66d28
fix some global namespace pollution
...
git-svn-id: file:///svn/tokudb@2118 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 13:37:52 +00:00
Rich Prohaska
cb2662383d
add env->set/get_lk_max_locks. closes #341
...
git-svn-id: file:///svn/tokudb@2117 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 12:54:17 +00:00
Rich Prohaska
7060ecd11c
clean .ofiles
...
git-svn-id: file:///svn/tokudb@2108 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-06 02:22:05 +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
Vincenzo Liberatore
57009d09e6
Addresses #337
...
Modify test cases to support lock bound
git-svn-id: file:///svn/tokudb@2106 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 22:40:05 +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
Yoni Fogel
506fad56cc
Addresses #293 Addresses #307
...
A compiler directive to make compilation sweeter
git-svn-id: file:///svn/tokudb@2104 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 22:29:26 +00:00
Yoni Fogel
7a29120fdc
Addresses #337
...
Addresses #293
Addresses #307
Adds range count to limit lock system memory from the dbenv, and correspondingly changes range trees and test files
git-svn-id: file:///svn/tokudb@2103 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 22:28:11 +00:00
Rich Prohaska
920df11c62
addresses #333
...
git-svn-id: file:///svn/tokudb@2102 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 21:39:02 +00:00
Rich Prohaska
3f5f1b5187
dump some header flags. addresses #333
...
git-svn-id: file:///svn/tokudb@2101 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 20:42:07 +00:00
Rich Prohaska
228e655d7e
test for nodup and dupsort trees in the same file. addresses #333
...
git-svn-id: file:///svn/tokudb@2099 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 19:07:46 +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
54fe4c77d7
Stop valgrind for some more bdb tests. Addresses #328 .
...
git-svn-id: file:///svn/tokudb@2097 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 18:20:16 +00:00
Rich Prohaska
925e6cdfdc
install tokudb. addresses #317
...
git-svn-id: file:///svn/tokudb@2094 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 15:48:54 +00:00
Rich Prohaska
76dfee1b0e
closes #331
...
git-svn-id: file:///svn/tokudb@2084 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 01:56:21 +00:00
Rich Prohaska
ea0ef57332
fix the env->set_data_dir db->open create bug. need to look at the errno if a unix system call fails. addresses #331
...
git-svn-id: file:///svn/tokudb@2083 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-05 01:01:28 +00:00
Vincenzo Liberatore
1971e2c12b
Addresses #293
...
Addresses #307
Fixed failure conditions in sweep borders
git-svn-id: file:///svn/tokudb@2082 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 22:02:26 +00:00
Vincenzo Liberatore
d283051af7
Addresses #293
...
Addresses #307
Fixed the condition under which the border sweep would fail.
git-svn-id: file:///svn/tokudb@2081 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 21:55:16 +00:00
Vincenzo Liberatore
5762a74d90
Addresses #293
...
Addresses #307
Beautifies Makefile in tests. Fixes initialization of hash table scanning.
git-svn-id: file:///svn/tokudb@2080 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 21:14:52 +00:00
Vincenzo Liberatore
1154857408
Addresses #293
...
Addresses #307
Write lock tests. Bug fix on borderwrite check.
git-svn-id: file:///svn/tokudb@2078 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-04 20:55:11 +00:00