Commit graph

85 commits

Author SHA1 Message Date
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
Yoni Fogel
3922fc2d89 Uses toku_txn_get_txnid instead of dereferencing.
Closes #35.

git-svn-id: file:///svn/tokudb@753 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-26 14:54:33 +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
561a36213b Add len before each log entry. Closes #23.
Also gets rid of most of the manual log code.  The remaining code is tough to excise, so I'll call this closed.  Closes #32.


git-svn-id: file:///svn/tokudb@735 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-24 23:21:02 +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
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
e50a0fb140 New logformat code can now dump our base test. Addresses #11.
git-svn-id: file:///svn/tokudb@725 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 17:16:26 +00:00
Bradley C. Kuszmaul
adba557e9f logdump didn't understand the magic. Addresses #20, #11
git-svn-id: file:///svn/tokudb@724 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 16:54:47 +00:00
Bradley C. Kuszmaul
ee171210b4 Fixed #20
git-svn-id: file:///svn/tokudb@720 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-23 02:51:45 +00:00
Bradley C. Kuszmaul
c6c1af847d fopen dumps OK, brtheader fails. Addresses #11
git-svn-id: file:///svn/tokudb@719 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 21:11:21 +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
23b50b671d log_code.c compiles to log_code.o. Addresses #11
git-svn-id: file:///svn/tokudb@715 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-22 18:45:22 +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
aab4d54f85 Log brtnode (but dumper cannot understand it yet.) Addresses #11
git-svn-id: file:///svn/tokudb@705 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 19:06:32 +00:00
Bradley C. Kuszmaul
97e2e3ba53 Fix up error handling in tokulogger_create_and_open_logger
git-svn-id: file:///svn/tokudb@700 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-21 13:10:47 +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
Yoni Fogel
673bd5458c Error codes now propogate in log creation
git-svn-id: file:///svn/tokudb@694 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 22:06:10 +00:00
Bradley C. Kuszmaul
13f29b60cc Make fopen parse, and log only the fname relative to the env, not the whole name with the env
git-svn-id: file:///svn/tokudb@689 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 21:20:05 +00:00
Bradley C. Kuszmaul
c1c964a839 Log fcreate
git-svn-id: file:///svn/tokudb@683 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-20 13:58:47 +00:00
Bradley C. Kuszmaul
d7288dff0b Make all external symbols in cachefile.o be start with toku_. Addresses #8
git-svn-id: file:///svn/tokudb@674 c7de825b-a66e-492c-adef-691d508d4ae1
2007-11-19 23:47:44 +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
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
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
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
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
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
fed9f63e94 More log stuff
git-svn-id: file:///svn/tokudb@107 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 21:39:55 +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
b35ac589fe Start implementing a logger
git-svn-id: file:///svn/tokudb@104 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-10 19:24:45 +00:00