Commit graph

2259 commits

Author SHA1 Message Date
Bradley C. Kuszmaul
4686fb2b3e Refs #1531. The fix is don't compile {{{test_txn_abort6}}} under BDB, rather than hacking around with the #ifdefs inside the code. I noticed this because the main line wouldn't compile tonight.
git-svn-id: file:///svn/toku/tokudb@10513 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:46 -04:00
Yoni Fogel
f84c352b63 Addresses #1590 Remove most of the logging overhead when we don't write log files.
git-svn-id: file:///svn/toku/tokudb@10507 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:46 -04:00
Yoni Fogel
c12bb0c325 Addresses #1589 Add test in db-benchmark-test to help find regression
git-svn-id: file:///svn/toku/tokudb@10502 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:46 -04:00
Yoni Fogel
b7c69ff8ed Fixed build
git-svn-id: file:///svn/toku/tokudb@10501 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:46 -04:00
Yoni Fogel
29854b7c7e Addresses #1577 Fix calculation of total memory size of a memarena
Use size of memarena struct instead of memarena pointer.
Include size of the 'other_bufs' array in size calculation.

git-svn-id: file:///svn/toku/tokudb@10500 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:46 -04:00
Yoni Fogel
b97ed02dfe Addresses #1577 Don't forget about buffers in memarena when one buffer gets full
git-svn-id: file:///svn/toku/tokudb@10499 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
0844eec052 Addresses #1531 Removed -w option as a workaround for diffs
Windows utils/dump/etc will need to output the correct dos/unix endline format


git-svn-id: file:///svn/toku/tokudb@10495 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
ecbada03b1 Addresses #1531 windows test_db_remove does not fail
git-svn-id: file:///svn/toku/tokudb@10494 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
68a6285528 Addresses #1531 tdb-recover calls brt_init/destroy as necessary
git-svn-id: file:///svn/toku/tokudb@10493 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
3cec87fc6a Addresses #1531 linux port (fix compile) of [10491]
git-svn-id: file:///svn/toku/tokudb@10492 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
c191b67324 Addresses #1531 Ported stat/fstat. toku_stat, toku_fstat (struct is toku_struct_stat), poisoned the use of the functions
git-svn-id: file:///svn/toku/tokudb@10491 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
cd11b163cd Closes #1299 Workaround: any warnings that -WX doesn't work with, add a -Qdiag-error: for
git-svn-id: file:///svn/toku/tokudb@10490 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Rich Prohaska
8df1c07ddb speed up leafentry_disksize. addresses #1585
git-svn-id: file:///svn/toku/tokudb@10482 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
2d037dc6cc Addresses #1531 portability layer changes required for porting utils
git-svn-id: file:///svn/toku/tokudb@10480 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
8828c84d1a Addresses #1531 Ported db-benchmark-test to windows (including bdb version)
git-svn-id: file:///svn/toku/tokudb@10479 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
6737a3be2f Addresses #1531 Ported utils to windows
git-svn-id: file:///svn/toku/tokudb@10478 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
c2d7783293 Addresses #1531 More porting for windows
git-svn-id: file:///svn/toku/tokudb@10477 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
52819f0e4d Fix regression where we would not pass some memarenas to a parent transactions. Fixes #1577
git-svn-id: file:///svn/toku/tokudb@10456 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
19665ad1b3 Addresses #1531 Additional porting for windows, to attempt to support bdb tests
git-svn-id: file:///svn/toku/tokudb@10438 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
7ccbae3c9f Closes #1582 Dirty bit allows 10 characters for process/thread id.
git-svn-id: file:///svn/toku/tokudb@10424 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Bradley C. Kuszmaul
682405a0f6 Fixes #1580. logformat now only runs once.
git-svn-id: file:///svn/toku/tokudb@10417 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Bradley C. Kuszmaul
426f087123 Make a test for #1572. This test causes the assertion reported by kayak to fail in the old code, but doesn't fail in the new code.
{{{
log.c:1125 toku_txn_note_brt: Assertion `(TOKUTXN)txnv==txn' failed
}}}
Fixes #1572.


git-svn-id: file:///svn/toku/tokudb@10416 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Rich Prohaska
12d9850444 clean the 4g.dir. closes #1578
git-svn-id: file:///svn/toku/tokudb@10414 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Bradley C. Kuszmaul
22e4312701 test1572 doesn't really test #1572 yet, but it did point out #1577. Now we are more careful about memory management in the rollback logs, so that we don't blow out memory. Fixes #1577. Refs #1572.
git-svn-id: file:///svn/toku/tokudb@10397 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
2ad6f1330c Addresses #1576 Remove 'return a-b' comparison trick from default key compare function
git-svn-id: file:///svn/toku/tokudb@10394 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Bradley C. Kuszmaul
9f2d99f24d Start trying to write a test for #1572 (make sure we can do 4 billion transactions. But the memory is getting out of control. Refs #1572.
git-svn-id: file:///svn/toku/tokudb@10393 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
603221c685 Addresses #1576 Removed (return a-b) comparison trick in tests, added comments about the issue
git-svn-id: file:///svn/toku/tokudb@10392 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
784f4eb22c Closes #1575 Added toku_omt_create_steal_sorted_array
git-svn-id: file:///svn/toku/tokudb@10378 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Yoni Fogel
bad2519b8a Closes #1572 find_xid now defines a total order on TXNIDs
git-svn-id: file:///svn/toku/tokudb@10374 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:45 -04:00
Rich Prohaska
7ee5d85680 measure point query times. addresses #1489
git-svn-id: file:///svn/toku/tokudb@10360 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
f3b347a94e Addresses #1531 make check in windows/tests and windows/ now works
git-svn-id: file:///svn/toku/tokudb@10350 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
97a6c4d3fe Addresses #1531 made test-stat more comprehensive
git-svn-id: file:///svn/toku/tokudb@10349 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
5696890bb1 Addresses #1531 Fix test-open-rename
git-svn-id: file:///svn/toku/tokudb@10348 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
23ea22b624 Closes #1445 diskfull.tdb now passes in windows
Unknown what change made this work.

Added additional asserts to verify it is really working.

git-svn-id: file:///svn/toku/tokudb@10347 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
42f2f8d1a3 Merged windows compile error fix from #1510
git-svn-id: file:///svn/toku/tokudb@10346 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
dbc0a3bae5 Delete .dirty files (patch from 1510). Fixes #1564.
git-svn-id: file:///svn/toku/tokudb@10337 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
4be7c5d541 Clean up linux/tests Makefile a little. Fixes #1561.
git-svn-id: file:///svn/toku/tokudb@10316 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
9bdd6eaf62 All the old recovery tests work (#1364), and are merged onto the main line.
Refs #1510, Closes #1364.
This work was done on the 1510 branch, which we will create again.


git-svn-id: file:///svn/toku/tokudb@10313 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
e4ee82ef92 Another fix for #1472 (if error_string is NULL we segfaulted.) Refs #1472.
git-svn-id: file:///svn/toku/tokudb@10310 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
f116201e5b Remove typo introduced in [10296]. Refs #1510, #1472.
git-svn-id: file:///svn/toku/tokudb@10301 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
28e6ad3ecc Merge fix for #1472 from the 1472 branch, and delete the 1472 branch. Fixes #1472.
Note that svn seems to be putting a lot of bookkeeping info in {{{svn:mergeinfo}}}, but it seems harmless.
{{{
svn merge -r10281:10294 https://svn.tokutek.com/tokudb/toku/tokudb.1472
}}}


git-svn-id: file:///svn/toku/tokudb@10296 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Rich Prohaska
302f13a2a6 merge -r 10283:10284 tokudb.1559 tokudb. closes #1559
git-svn-id: file:///svn/toku/tokudb@10293 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
4200d18075 Addresses #1557 Made local functions static to remove icl warnigns
git-svn-id: file:///svn/toku/tokudb@10262 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
d9988c26b7 Closes #1557 Blocktable now has 1 lock per brt
git-svn-id: file:///svn/toku/tokudb@10254 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Bradley C. Kuszmaul
99a8372313 A better fix for #1374. Refs #1374. Fixes #1555.
git-svn-id: file:///svn/toku/tokudb@10215 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Rich Prohaska
e47296b9d6 have db_version return the svn revision number. closes #1502
git-svn-id: file:///svn/toku/tokudb@10193 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Yoni Fogel
7cae47dff4 Fixes #1542 h->dirty protected by the translation table lock
git-svn-id: file:///svn/toku/tokudb@10162 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Rich Prohaska
73286984c0 grab the write lock when a pair is selected for eviction from the cache table rather than grabbing it in the writer thread. this solves the keyrange-dupsort-unflat deadlock. closes #1536
git-svn-id: file:///svn/toku/tokudb@10150 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Rich Prohaska
70249e065f check the return value from toku-serialize_brtnode_to
git-svn-id: file:///svn/toku/tokudb@10134 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00
Rich Prohaska
700e9e67d1 icc on linux uses static intel libs. addresses #1487
git-svn-id: file:///svn/toku/tokudb@10133 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:57:44 -04:00