Commit graph

5267 commits

Author SHA1 Message Date
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
377a0688d7 Finished for the night.. may not compile or work.
git-svn-id: file:///svn/tokudb@328 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-20 20:15:14 +00:00
Rich Prohaska
de4cbcad05 version of benchmark-test wrapped with bdb
git-svn-id: file:///svn/tokudb@325 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-19 18:55:08 +00:00
Rich Prohaska
065b55909e add DB_VERSION_MAJOR/MINOR/PATCH
add db_env_create def
add db_create def



git-svn-id: file:///svn/tokudb@324 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-19 18:34:17 +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
b094399609 Cleaned up tests.
git-svn-id: file:///svn/tokudb@322 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-19 15:24:20 +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
1cc81f5c98 port to linux fedora 6 i386
git-svn-id: file:///svn/tokudb@320 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-18 20:38:47 +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
Yoni Fogel
e5497364c1 Random data generator.
make test will run a test on it.
The test works currently but is very ugly.


git-svn-id: file:///svn/tokudb@313 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-15 00:24:48 +00:00
Rich Prohaska
d35fe03b66 zero after malloc
git-svn-id: file:///svn/tokudb@309 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-14 18:12:15 +00:00
Rich Prohaska
71fbeb60a4 add primes.o, fix some memory leaks
git-svn-id: file:///svn/tokudb@307 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-14 14:02:57 +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
ea41c34386 add db get, db delete
git-svn-id: file:///svn/tokudb@293 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 19:08:49 +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
Rich Prohaska
f23bc52b01 fix compile time errors
git-svn-id: file:///svn/tokudb@289 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 15:54:30 +00:00
Rich Prohaska
c71ab0c05c fix the cursor first last deleted pair problem
git-svn-id: file:///svn/tokudb@288 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-11 14:53:21 +00:00
Rich Prohaska
7ac29707b1 cursor set key and set range
git-svn-id: file:///svn/tokudb@284 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-10 17:53:30 +00:00
Rich Prohaska
765ea049fd add brt cursor prev feature and test cases
git-svn-id: file:///svn/tokudb@282 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-07 20:25:54 +00:00
Rich Prohaska
d2858adb09 name change
git-svn-id: file:///svn/tokudb@281 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-07 13:51:47 +00:00
Rich Prohaska
5bbddb61f5 change test name to already_there
git-svn-id: file:///svn/tokudb@280 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-07 13:34:17 +00:00
Rich Prohaska
c10712dee6 Change to implement delete by key. A BRT_DELETE command is injected into the
tree.  It replaces any INSERT or DELETE command with the same key at all
interior nodes.  It is translated into a PMA delete operation at a leaf
node.  

The database file format was changed for the contents of interior node
buffers to include a 1 byte type field.  There are currently 2 types:
BRT_INSERT and BRT_DELETE.




git-svn-id: file:///svn/tokudb@278 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 21:36:45 +00:00
Bradley C. Kuszmaul
de47452c10 use the new db.h
git-svn-id: file:///svn/tokudb@276 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 20:13:56 +00:00
Bradley C. Kuszmaul
d7bc137217 Fix spelling error
git-svn-id: file:///svn/tokudb@274 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 19:39:51 +00:00
Rich Prohaska
87a0cffe5d fix pma double delete and test pma double insert
git-svn-id: file:///svn/tokudb@272 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 17:29:45 +00:00
Bradley C. Kuszmaul
ea6445a469 ./db.h gives the same offsets at the original db.h
git-svn-id: file:///svn/tokudb@271 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-06 14:18:08 +00:00
Bradley C. Kuszmaul
b82dc051f7 Add in the typedefs
git-svn-id: file:///svn/tokudb@270 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:32:12 +00:00
Bradley C. Kuszmaul
35f14862fc Alphabetize
git-svn-id: file:///svn/tokudb@269 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:28:58 +00:00
Bradley C. Kuszmaul
bede216c86 Alphabetize
git-svn-id: file:///svn/tokudb@268 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:26:46 +00:00
Bradley C. Kuszmaul
299b306b46 64
git-svn-id: file:///svn/tokudb@267 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:24:24 +00:00
Bradley C. Kuszmaul
9b7f56d33f txn_stat btree-stat
git-svn-id: file:///svn/tokudb@266 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:24:17 +00:00
Bradley C. Kuszmaul
383fbeda42 64
git-svn-id: file:///svn/tokudb@265 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:16:37 +00:00
Bradley C. Kuszmaul
b2193274eb key_range lsn txn_active
git-svn-id: file:///svn/tokudb@264 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:16:26 +00:00
Rich Prohaska
ce9eba64d4 get KEY_VALUE_OVERHEAD from brt-internal.h
git-svn-id: file:///svn/tokudb@263 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 20:09:43 +00:00
Bradley C. Kuszmaul
53f01d6d03 64
git-svn-id: file:///svn/tokudb@262 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:20:31 +00:00
Bradley C. Kuszmaul
9b32c3d5cd 32
git-svn-id: file:///svn/tokudb@261 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:20:25 +00:00
Bradley C. Kuszmaul
03d85f6ba1 64
git-svn-id: file:///svn/tokudb@260 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:16:50 +00:00
Bradley C. Kuszmaul
d4dc109407 db_env'
git-svn-id: file:///svn/tokudb@259 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:16:43 +00:00
Bradley C. Kuszmaul
4858f5be4c Save 64
git-svn-id: file:///svn/tokudb@258 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:12:35 +00:00
Bradley C. Kuszmaul
4b26069914 dbc 32
git-svn-id: file:///svn/tokudb@257 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:12:29 +00:00
Bradley C. Kuszmaul
2c41f5609a dbc
git-svn-id: file:///svn/tokudb@256 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:11:52 +00:00
Bradley C. Kuszmaul
1b0a4df991 Save 64
git-svn-id: file:///svn/tokudb@255 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:08:52 +00:00
Bradley C. Kuszmaul
645a93f3cb txn
git-svn-id: file:///svn/tokudb@254 c7de825b-a66e-492c-adef-691d508d4ae1
2007-09-05 19:08:41 +00:00