Commit graph

159 commits

Author SHA1 Message Date
Rich Prohaska
96b7ff0908 BRTNODEs no longer point to BRTs
git-svn-id: file:///svn/tokudb@602 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-16 20:34:13 +00:00
Bradley C. Kuszmaul
0d861f0f6f Remove memory leak in txn->commit
git-svn-id: file:///svn/tokudb@599 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-16 15:37:35 +00:00
Yoni Fogel
db9d08dda5 THINGS DONE:
0   Readded missing files i.e. regression tests.
    1
        svn add the new test (test_db_remove_subdb)
        Commit db->remove and the tokudb.bugs (bug 47 describes it)
    2
        Modified tests to use a test subdirectory for temp files,
        removed unneeded flags to DB_ENV->open
        test_db_dup.c
        test_db_already_exists.c
        test_db_close_no_open.c
        test_db_open_notexist_reopen.c
    3
        Added bug 48 (memory leak in DB->remove
        Need Valgrind to verify.
        svn add: test_db_remove_memleak.c


git-svn-id: file:///svn/tokudb@579 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-15 19:09:31 +00:00
Rich Prohaska
1620ec5815 remove app_private; merge in dup pma;
git-svn-id: file:///svn/tokudb@567 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-15 14:44:05 +00:00
Bradley C. Kuszmaul
60abc6ee59 The log parses
git-svn-id: file:///svn/tokudb@561 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-14 22:50:15 +00:00
Bradley C. Kuszmaul
a3f55afab9 Try to parse the log
git-svn-id: file:///svn/tokudb@560 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-14 22:32:53 +00:00
Bradley C. Kuszmaul
48f0ad74b5 Up
git-svn-id: file:///svn/tokudb@519 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-14 17:58:38 +00:00
Bradley C. Kuszmaul
657c57b44a Do subtransactions properly (without an fsync)
git-svn-id: file:///svn/tokudb@499 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-19 17:05:10 +00:00
Rich Prohaska
70d7c7a3ec simplify the cachetable interface by removing all of the *_size
functions



git-svn-id: file:///svn/tokudb@498 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-19 14:07:41 +00:00
Rich Prohaska
f3acf3d40d fix the benchmark-test running out of vm space when running with large values
(--valsize 1024).



git-svn-id: file:///svn/tokudb@493 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-18 17:16:35 +00:00
Bradley C. Kuszmaul
407fb25431 Fix the hashit() problem
git-svn-id: file:///svn/tokudb@491 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-17 22:10:47 +00:00
Rich Prohaska
9d233260a2 add keysize and valsize
git-svn-id: file:///svn/tokudb@489 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-17 19:35:06 +00:00
Bradley C. Kuszmaul
c2227cb654 Be sure to set dirty bit in header
git-svn-id: file:///svn/tokudb@484 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-17 13:39:08 +00:00
Bradley C. Kuszmaul
2905012406 Don't allocate a megabyte on the stack
git-svn-id: file:///svn/tokudb@472 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-16 21:02:53 +00:00
Rich Prohaska
9fefe9b291 tighten up the mempool assertions
git-svn-id: file:///svn/tokudb@469 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-16 14:18:02 +00:00
Rich Prohaska
19b53adace add --nodesize cmd line parameter
git-svn-id: file:///svn/tokudb@467 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-15 21:12:08 +00:00
Bradley C. Kuszmaul
39c9fc29c4 Logging
git-svn-id: file:///svn/tokudb@462 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-15 03:32:32 +00:00
Bradley C. Kuszmaul
88f31dfa36 wbuf can log a fileid
git-svn-id: file:///svn/tokudb@460 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-15 02:06:19 +00:00
Rich Prohaska
11bf6c52f2 mempoll testing
git-svn-id: file:///svn/tokudb@444 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-12 23:50:05 +00:00
Rich Prohaska
c69bbcf7ff pma uses a memory pool
git-svn-id: file:///svn/tokudb@436 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-10 19:33:31 +00:00
Rich Prohaska
a2dcdeeefd add kv_pair_size
git-svn-id: file:///svn/tokudb@435 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-10 19:20:08 +00:00
Yoni Fogel
016237bfee OSX port
git-svn-id: file:///svn/tokudb@434 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-10 17:41:01 +00:00
Rich Prohaska
cba20ee708 dynamically resize the cache table
git-svn-id: file:///svn/tokudb@397 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-05 14:46:49 +00:00
Rich Prohaska
80bb78fd34 propagate app_private through cursors
git-svn-id: file:///svn/tokudb@392 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-04 15:23:41 +00:00
Rich Prohaska
01b38bdbdf test app_private with cursors
git-svn-id: file:///svn/tokudb@391 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-04 14:41:12 +00:00
Bradley C. Kuszmaul
d4f76b0aa5 Put the parent pointers into every brtnode
git-svn-id: file:///svn/tokudb@388 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-03 19:34:31 +00:00
Rich Prohaska
a3d55db0fb make sure the db parameter is passed to the user's key compare function
when using cursors



git-svn-id: file:///svn/tokudb@385 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-03 14:51:23 +00:00
Rich Prohaska
57f9ebe655 make O2 the default
git-svn-id: file:///svn/tokudb@384 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-02 19:21:06 +00:00
Rich Prohaska
99432c5d00 some commands are expected to fail (like a delete of a non-existent key)
propagate the error code back the call stack



git-svn-id: file:///svn/tokudb@383 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-02 19:19:44 +00:00
Rich Prohaska
3def1beae1 push commands down to in memory nodes
git-svn-id: file:///svn/tokudb@382 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-02 16:17:44 +00:00
Bradley C. Kuszmaul
cf23a48aa8 Get rid of #if 0 code
git-svn-id: file:///svn/tokudb@378 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-02 14:33:59 +00:00
Bradley C. Kuszmaul
578218bdfc Minor comment changes
git-svn-id: file:///svn/tokudb@377 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-02 14:14:24 +00:00
Bradley C. Kuszmaul
35404cb2eb Get db-benchmark-test to run with transactions
git-svn-id: file:///svn/tokudb@376 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-01 21:19:53 +00:00
Bradley C. Kuszmaul
7540c0468f Add transactions to benchmark test
git-svn-id: file:///svn/tokudb@374 c7de825b-a66e-492c-adef-691d508d4ae1
2007-10-01 19:55:37 +00:00
Bradley C. Kuszmaul
710cf343a3 Merge logging
git-svn-id: file:///svn/tokudb@371 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-28 17:11:22 +00:00
Rich Prohaska
04a16870ac add debug prints in the new cachetable
git-svn-id: file:///svn/tokudb@340 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-22 15:30:29 +00:00
Rich Prohaska
9f2640a717 fix compile time error on amd64
git-svn-id: file:///svn/tokudb@335 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-21 18:34:34 +00:00
Rich Prohaska
b0e3bdca20 change the cache table to act on the size of the objects rather than the number of objects stored in it
note that when the object size is 1, the cache table acts on the number of objects as before.

change the tree algorithms to update the object size in the cache table when the object is unpinned.



git-svn-id: file:///svn/tokudb@334 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-21 17:55:49 +00:00
Yoni Fogel
2a03817245 ported to gcc 4.2 for Mac os
git-svn-id: file:///svn/tokudb@323 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-19 17:35:16 +00:00
Yoni Fogel
5946e5bf1f Port to Mac OS
git-svn-id: file:///svn/tokudb@321 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-18 21:32:32 +00:00
Rich Prohaska
83407ae6bf Add a dirty bit to the BRT node object. This bit is set by code
that modifies the state of a BRT node object.  A node is unpinned with
its dirty bit passed to the cache table.



git-svn-id: file:///svn/tokudb@316 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-18 16:09:55 +00:00
Rich Prohaska
5cd0b9c759 update the clean target
git-svn-id: file:///svn/tokudb@315 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-17 17:36:52 +00:00
Rich Prohaska
e1df3c2935 _put sets dirty=1, get_and_pin sets dirty=0 for fetched items
git-svn-id: file:///svn/tokudb@314 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-17 16:23:05 +00:00
Rich Prohaska
4564dd3b9a brt cursor get both feature
git-svn-id: file:///svn/tokudb@301 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-12 20:30:36 +00:00
Bradley C. Kuszmaul
cbc53004b7 64-bit portability for cachetable-test2
git-svn-id: file:///svn/tokudb@299 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-12 18:22:46 +00:00
Bradley C. Kuszmaul
2f66d9a1c7 Fix the serialize-test: It was doing read then write, instead of write then read
git-svn-id: file:///svn/tokudb@298 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-12 18:19:20 +00:00
Bradley C. Kuszmaul
7201ffd9e0 Improve cachetable testing
git-svn-id: file:///svn/tokudb@297 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-12 18:12:31 +00:00
Rich Prohaska
7077a1f50f add multiple cursor tree walk test
git-svn-id: file:///svn/tokudb@296 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 21:34:32 +00:00
Rich Prohaska
204f68ed3f implement delete under brt cursor
git-svn-id: file:///svn/tokudb@291 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 18:32:10 +00:00
Rich Prohaska
f5be7117b5 brt cursor set and set range features
git-svn-id: file:///svn/tokudb@290 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 16:30:58 +00:00