Rich Prohaska
83613e1e9a
restore -O2 default
...
git-svn-id: file:///svn/tokudb@1094 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-12 15:35:53 +00:00
Yoni Fogel
7331e46492
Added DB_UNKNOWN to db.h
...
You can use DB_UNKNOWN as a dbtype (as long as you don't use DB_EXCL) in dbopen,
and then it will load the flags from the file.
tokudb_dump
Now supports duplicates/sorted duplicates.
tokudb_load will give a warning about any duplicate duplicate loads
but will continue with the rest of the data.
Closes #148
Closes #166
git-svn-id: file:///svn/tokudb@1086 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-11 19:34:21 +00:00
Bradley C. Kuszmaul
2d351ec3d4
mixing toku_malloc and malloc is not a problem. At least with BUFFERED_MALLOC not defined. Added a test, and a {{{#error}}} inside {{{memory.c}}}. Fixes #161 .
...
git-svn-id: file:///svn/tokudb@1026 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-10 11:28:00 +00:00
Rich Prohaska
6668583aad
add a checko2 target to verify OPTFLAGS. addresses #127
...
git-svn-id: file:///svn/tokudb@981 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-06 20:52:23 +00:00
Bradley C. Kuszmaul
ba1bd129d5
Can recover after 10 insertions. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@945 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-05 20:00:19 +00:00
Bradley C. Kuszmaul
8c37306c4e
pma move logging works better
...
git-svn-id: file:///svn/tokudb@918 c7de825b-a66e-492c-adef-691d508d4ae1
2007-12-04 16:16:30 +00:00
Bradley C. Kuszmaul
9c336ba00c
Get rid of mdict (into .junk). Fixes #10 .
...
git-svn-id: file:///svn/tokudb@849 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-30 06:40:37 +00:00
Bradley C. Kuszmaul
df410defa7
Rename the last bunch of symbols to toku_symbols. Closes #8 .
...
git-svn-id: file:///svn/tokudb@829 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 18:14:40 +00:00
Bradley C. Kuszmaul
0a6d3a6cc6
Rename a bunch of symbols to toku_symbols. Addresses #8 .
...
git-svn-id: file:///svn/tokudb@826 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-29 15:34:49 +00:00
Bradley C. Kuszmaul
9da9621873
Stop passing DB* everywhere. Instead store it in the BRT and PMA structs. Fixes #39 .
...
git-svn-id: file:///svn/tokudb@761 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 21:51:36 +00:00
Bradley C. Kuszmaul
b93b2eec7d
The PRI macros actually seemed the cleanest way to fix this. Fixed #38 .
...
git-svn-id: file:///svn/tokudb@758 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 18:47:44 +00:00
Bradley C. Kuszmaul
ab3bdffaf3
Start logging an insert (but don't deal with the bt_compare issue yet. Addresses #27 .
...
git-svn-id: file:///svn/tokudb@745 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-25 15:10:26 +00:00
Bradley C. Kuszmaul
da2a69a411
Rename logdump to tdb_logprint. Closes #26 .
...
git-svn-id: file:///svn/tokudb@736 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 23:48:34 +00:00
Bradley C. Kuszmaul
80154022be
The recovered file is exactly the same as the original file for test_log2.tdb.
...
(The wrong LSN was being saved in the file. The recovered version was right.)
Addresses #27 .
(Also, it was broken, and that appears to be fixed.)
git-svn-id: file:///svn/tokudb@730 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 03:50:28 +00:00
Bradley C. Kuszmaul
2a9b3b3d40
Recovery runs for test_log2's database. But the files are not quite the same. Addresses #27
...
git-svn-id: file:///svn/tokudb@728 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 20:36:03 +00:00
Bradley C. Kuszmaul
e17f972093
Implement recover. This version can scan the log, but doesn't actually recover. Addresses #27
...
git-svn-id: file:///svn/tokudb@727 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 18:27:50 +00:00
Bradley C. Kuszmaul
85336f49f3
Get rid of the manual commit code. Addresses #32
...
git-svn-id: file:///svn/tokudb@726 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 17:41:02 +00:00
Bradley C. Kuszmaul
a579c5958c
everything compiles and the tests still run.... Addresses #11
...
git-svn-id: file:///svn/tokudb@716 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 20:30:38 +00:00
Bradley C. Kuszmaul
3795a1c38f
log_code.c compiles (but lots of compiler warnings). Addresses #11
...
git-svn-id: file:///svn/tokudb@713 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 07:13:08 +00:00
Bradley C. Kuszmaul
40912f3b88
logdump now understands newbrtnode. Addresses #11
...
git-svn-id: file:///svn/tokudb@706 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 21:41:57 +00:00
Bradley C. Kuszmaul
5784ee45fb
Log header
...
git-svn-id: file:///svn/tokudb@699 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 13:07:49 +00:00
Rich Prohaska
5f03add22c
put the -O2 flags back
...
git-svn-id: file:///svn/tokudb@633 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-18 23:57:38 +00:00
Bradley C. Kuszmaul
574016ffd3
More logging stuff
...
git-svn-id: file:///svn/tokudb@623 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-18 12:48:36 +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
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
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
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
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
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
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
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
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
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
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
Rich Prohaska
9f70fff85d
try multiple brt fanout's
...
git-svn-id: file:///svn/tokudb@197 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-25 21:58:25 +00:00
Bradley C. Kuszmaul
8b01b4d7a2
One-per-line in the makefile BINS
...
git-svn-id: file:///svn/tokudb@192 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-24 18:38:43 +00:00
Bradley C. Kuszmaul
611a2249ec
One-per-line in the makefile BINS
...
git-svn-id: file:///svn/tokudb@191 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-24 18:38:11 +00:00
Bradley C. Kuszmaul
2fcb4bfaaf
Separate rbuf and wbuf so that log.c can use it. Check in a perliminary version of log.c
...
git-svn-id: file:///svn/tokudb@162 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-21 23:32:17 +00:00
Bradley C. Kuszmaul
701339ea1d
Use prime numbers for the hash table sizes
...
git-svn-id: file:///svn/tokudb@126 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 21:53:19 +00:00
Bradley C. Kuszmaul
7b2ef97760
Speed up toku_hash_rehash_everything by remembering the hash function
...
git-svn-id: file:///svn/tokudb@120 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 19:49:06 +00:00
Bradley C. Kuszmaul
326da930c4
log-test checks to see if we can find log numbers
...
git-svn-id: file:///svn/tokudb@106 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 21:15:17 +00:00
Bradley C. Kuszmaul
e1c5b6bd16
This works: make CYGWIN=cygwin check
...
git-svn-id: file:///svn/tokudb@102 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-09 13:35:23 +00:00
Bradley C. Kuszmaul
0344ea4ae8
Try using an auto variable where a malloc was used in the smooth fun
...
git-svn-id: file:///svn/tokudb@91 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-07 22:39:23 +00:00
Bradley C. Kuszmaul
681e132378
Add the benchmark test
...
git-svn-id: file:///svn/tokudb@83 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 20:53:40 +00:00
Bradley C. Kuszmaul
226afd335b
Add the benchmark test
...
git-svn-id: file:///svn/tokudb@82 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 20:53:18 +00:00
Bradley C. Kuszmaul
398a447dea
valgrind runs on everything
...
git-svn-id: file:///svn/tokudb@81 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-01 17:25:22 +00:00