Commit graph

1096 commits

Author SHA1 Message Date
Bradley C. Kuszmaul
4ed90cab5c Get rid of fmemopen. Fixes #446.
git-svn-id: file:///svn/tokudb@2408 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-25 23:27:21 +00:00
Bradley C. Kuszmaul
5f07bbf716 Make the test_error more comprehensive. Addresses #445.
git-svn-id: file:///svn/tokudb@2407 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-25 23:11:26 +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
0f9406a2a1 get it working on bdb address #431
git-svn-id: file:///svn/tokudb@2379 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-22 14:59:19 +00:00
Rich Prohaska
d63430669a get it working on bdb. address #431
git-svn-id: file:///svn/tokudb@2373 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-22 01:57:00 +00:00
Rich Prohaska
7be71bc300 test case for crashing transaction abort. address #431
git-svn-id: file:///svn/tokudb@2371 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-21 20:44:06 +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
Yoni Fogel
7d10c62a35 Valgrind reported branches based on uninitialised variables.
Fixed test_00010_parameter_errors.c

git-svn-id: file:///svn/tokudb@2360 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-20 18:18:43 +00:00
Rich Prohaska
f2c9219a7d remove untested code waiting for a test
git-svn-id: file:///svn/tokudb@2351 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-19 20:27:16 +00:00
Rich Prohaska
0ee2e509ed close #425
git-svn-id: file:///svn/tokudb@2349 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-19 15:33:05 +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
Vincenzo Liberatore
1ac1d0171b Fixes compilation problems on Debian due to -Wunreachable-code -Werror combination
git-svn-id: file:///svn/tokudb@2336 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-18 20:43:20 +00:00
Yoni Fogel
b4e57469ef Lock tree, range tree documentation.
git-svn-id: file:///svn/tokudb@2331 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-18 19:42:49 +00:00
Yoni Fogel
5fc172b7aa White space changes
git-svn-id: file:///svn/tokudb@2330 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-18 19:42:28 +00:00
Rich Prohaska
9cfbaf9457 cleanup the test case address #408
git-svn-id: file:///svn/tokudb@2317 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-16 14:14:24 +00:00
Vincenzo Liberatore
7a94b49f96 Addresses #378
Restore comments in lock tree.

git-svn-id: file:///svn/tokudb@2310 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-15 21:41:59 +00:00
Vincenzo Liberatore
10dbfb42eb Addresses #378
Refactored error handling to work with C++ API.
Modify Makefile to avoid repeating all tests.

git-svn-id: file:///svn/tokudb@2309 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-15 21:38:14 +00:00
Vincenzo Liberatore
97e1ef272f Addresses #378
Propagate refactored error handling to C++ API.

git-svn-id: file:///svn/tokudb@2308 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-15 21:36:19 +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
Vincenzo Liberatore
273b4aadee Addresses #378
Port Makefile to OSX. Reduce non-verbose output. Added completion echo for targets.

git-svn-id: file:///svn/tokudb@2306 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-15 15:24:20 +00:00
Vincenzo Liberatore
174a2aa740 Addresses #378
Adds new functions for ephemeral locking and error handling.

git-svn-id: file:///svn/tokudb@2296 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-14 22:23:31 +00:00
Vincenzo Liberatore
fa846cf729 Addresses #378
Separates out error handling and ephemeral locking. 
However, it fails a few tests.

git-svn-id: file:///svn/tokudb@2295 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-14 22:22: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
2f26a8b6a0 get test_error to build on linux
git-svn-id: file:///svn/tokudb@2293 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-14 18:56:42 +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
5ffe45a763 Closes #348
Partial implementation of nested transactions for locking purposes.
The actual txn (child/grandchild/etc) does all the work,
but for locking purposes we only use the parent (oldest ancestor).
This should work as expected (with possibly some extra lock overhead)
as long as no node has two active (non-aborted non-committed) children
simultaneously.

If a node has two children, they are supposed to be able to conflict
with each other (and deadlock/etc).  We are not providing this
conflict behavior between siblings.

We do support arbitrarily deep nested txns, so long as it is
a linked list instead of a general tree.

git-svn-id: file:///svn/tokudb@2284 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-13 15:22:58 +00:00
Yoni Fogel
1c9d206f89 Locking code that is difficult to get working in bdb.
git-svn-id: file:///svn/tokudb@2283 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-13 15:00:13 +00:00
Vincenzo Liberatore
25d340f106 Addresses #311
Completes the documentation of locktree.

git-svn-id: file:///svn/tokudb@2282 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-13 14:53:41 +00:00
Vincenzo Liberatore
56b15cd8c6 Addresses #350
Tests on more c_get flags ... 

git-svn-id: file:///svn/tokudb@2275 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 22:45:46 +00:00
Vincenzo Liberatore
e1b999bec5 Addresses #311
Adds more documentation to locktree 

git-svn-id: file:///svn/tokudb@2270 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 21:45:55 +00:00
Yoni Fogel
3f22696fe1 Updated svn:ignores
toku_env_set_lk_max (when it exists)
is now an alias for toku_env_set_lk_max_locks


git-svn-id: file:///svn/tokudb@2266 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 16:56:25 +00:00
Vincenzo Liberatore
e83fc22f36 Addresses #378
Changes Doxyfile and comments to generate caller and callee graphs

git-svn-id: file:///svn/tokudb@2265 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 15:59:08 +00:00
Rich Prohaska
235843e2ac get the cxx/tests/exceptions working. closes #377
git-svn-id: file:///svn/tokudb@2264 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 15:26:45 +00:00
Rich Prohaska
97c5f29219 crash in txn begin, commit
git-svn-id: file:///svn/tokudb@2263 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 14:04:09 +00:00
Rich Prohaska
187380c667 define DB_AUTO_COMMIT in db.h_4_6
git-svn-id: file:///svn/tokudb@2261 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-12 12:20:13 +00:00
Yoni Fogel
385b669b08 Removed some additional void* types in favor of static types in lock tree
git-svn-id: file:///svn/tokudb@2255 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 23:40:29 +00:00
Yoni Fogel
c89743d016 Changed range trees to have static types instead of void*
git-svn-id: file:///svn/tokudb@2254 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 23:37:55 +00:00
Yoni Fogel
0fa24d17cb Addresses #368
Deals with NULL transactions in a transaction environment for cursors.
Returns EINVAL (disallows NULL transaction cursors in txn environment.)
This may change later to auto-create transaction and commit it upon
cursor close.

git-svn-id: file:///svn/tokudb@2253 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 20:11:54 +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
2d5e34efda Added DB_AUTO_COMMIT to header
git-svn-id: file:///svn/tokudb@2251 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-11 19:55:37 +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
7087120e2f Remove another annoying error message. Addresses #375.
git-svn-id: file:///svn/tokudb@2239 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 17:58:30 +00:00
Bradley C. Kuszmaul
e8c87085e2 Remove those annoying error messages. Fixes #375.
git-svn-id: file:///svn/tokudb@2238 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 17:54:56 +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
07047bdfd0 rename libdb.so to libtokudb.so. closes #150
git-svn-id: file:///svn/tokudb@2230 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 03:50:15 +00:00
Yoni Fogel
2cb9fb2ebe Port to OSX for makefiles, easier to use OSX versions.
git-svn-id: file:///svn/tokudb@2229 c7de825b-a66e-492c-adef-691d508d4ae1
2008-02-10 02:39:08 +00:00