mariadb/src
Rich Prohaska 8edb3fc9b9 #4762 criteria for garbage collection changed, so the stat64 behaviour is slightly different for the root node refs[t:4762]
git-svn-id: file:///svn/toku/tokudb@42385 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:23 -04:00
..
lock_tree #4761 hold the lock tree manager mutex and the lock tree mutex when doing lock escalation refs[t:4761] 2013-04-17 00:00:23 -04:00
range_tree #4503 #4504 support concurrent queries on the mainline refs[t:4503] refs[t:4504] 2013-04-17 00:00:10 -04:00
tests #4762 criteria for garbage collection changed, so the stat64 behaviour is slightly different for the root node refs[t:4762] 2013-04-17 00:00:23 -04:00
elocks.c close[t:4603] Add Id tags to all {{{src/*.c}}} files. Fixes #4603. 2013-04-17 00:00:13 -04:00
errors.c close[t:4603] Add Id tags to all {{{src/*.c}}} files. Fixes #4603. 2013-04-17 00:00:13 -04:00
export.map [t:3923], merge to main 2013-04-16 23:59:50 -04:00
indexer-internal.h #4685 get the hot indexer to work with txn's in the preparing state closes[t:4685] 2013-04-17 00:00:17 -04:00
indexer-undo-do.c #4685 get the hot indexer to work with txn's in the preparing state closes[t:4685] 2013-04-17 00:00:17 -04:00
indexer.c close[t:4603] Add Id tags to all {{{src/*.c}}} files. Fixes #4603. 2013-04-17 00:00:13 -04:00
indexer.h [t:2949] Merge from tokudb.2949 with command, executed at sandbox/toku {{{svn merge -r39023:HEAD tokudb.2949 tokudb}}}. Refs #2949. 2013-04-17 00:00:08 -04:00
loader.c [t:4518], return error in toku_loader_close if brtloader close fails 2013-04-17 00:00:18 -04:00
loader.h [t:2949] Merge from tokudb.2949 with command, executed at sandbox/toku {{{svn merge -r39023:HEAD tokudb.2949 tokudb}}}. Refs #2949. 2013-04-17 00:00:08 -04:00
Makefile close[t:4707] Rename xid_t to avoid conflicts with the handlerton. Closes #4707. 2013-04-17 00:00:17 -04:00
README Rename 2007-07-13 19:37:47 +00:00
tokuglobals.py #3239 allow all ^toku symbols in the globals list refs[t:3239] 2013-04-16 23:59:35 -04:00
ydb-internal.h [t:4563], move txn code to own file 2013-04-17 00:00:12 -04:00
ydb.c [t:4518], merge fix to main 2013-04-17 00:00:18 -04:00
ydb.h #4503 #4504 support concurrent queries on the mainline refs[t:4503] refs[t:4504] 2013-04-17 00:00:10 -04:00
ydb_cursor.c [t:4529], remove some shared variables that have good alternatives at MySQL layer 2013-04-17 00:00:13 -04:00
ydb_cursor.h [t:4529], remove some shared variables that have good alternatives at MySQL layer 2013-04-17 00:00:13 -04:00
ydb_db.c [t:4518], merge fix to main 2013-04-17 00:00:18 -04:00
ydb_db.h [t:4518], merge fix to main 2013-04-17 00:00:18 -04:00
ydb_env_func.c close[t:4603] Add Id tags to all {{{src/*.c}}} files. Fixes #4603. 2013-04-17 00:00:13 -04:00
ydb_env_func.h #4503 #4504 support concurrent queries on the mainline refs[t:4503] refs[t:4504] 2013-04-17 00:00:10 -04:00
ydb_lib.c close[t:4603] Add Id tags to all {{{src/*.c}}} files. Fixes #4603. 2013-04-17 00:00:13 -04:00
ydb_load.h [t:3196] Fix iname generation: only dictionaries created by brtloader 2013-04-16 23:59:35 -04:00
ydb_row_lock.c close[t:4603] Add Id tags to all {{{src/*.c}}} files. Fixes #4603. 2013-04-17 00:00:13 -04:00
ydb_row_lock.h #4503 #4504 support concurrent queries on the mainline refs[t:4503] refs[t:4504] 2013-04-17 00:00:10 -04:00
ydb_txn.c [t:4297], make child transactions that are prepared be a NO-OP at the ydb layer. MySQL calls prepare on child transactions 2013-04-17 00:00:18 -04:00
ydb_txn.h close[t:4298] Merge from 4298j: {{{svn merge -c41355 ../tokudb.4298i}}}. Closes #4298. 2013-04-17 00:00:14 -04:00
ydb_write.c [t:4518], merge fix to main 2013-04-17 00:00:18 -04:00
ydb_write.h #4503 #4504 support concurrent queries on the mainline refs[t:4503] refs[t:4504] 2013-04-17 00:00:10 -04:00

cd ~/yobiduck/ydb/src
make


cd ~/mysql/bdbi/mysql-5.0.27/
export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/ydb/src --prefix=/home/bradley/usr

make

make install

#This one may not be needed
~/mysql/bdbi/usr/bin/mysql_install_db

#
pushd /home/bradley/mysql/bdbi/usr/ ; /home/bradley/mysql/bdbi/usr//bin/mysqld_safe &
popd

~/mysql/bdbi/usr/bin/mysql -u root
mysql> show databases;
mysql> create database yobitest;
mysql> use yobitest;
mysql> create table t1 (i int) engine=bdb;

Look for the error in /home/bradley/mysql/bdbi/usr/var/yobert.err



----
This links right:
 LD_LIBRARY_PATH=/home/bradley/mysql/bdbi/usr/lib/mysql/ ldd sql/mysqld
----
This works, 
 LD_LIBRARY_PATH=/home/bradley/mysql/bdbi/usr/lib/mysql/ /home/bradley/mysql/bdbi/usr//bin/mysqld
producing the following in the log

061208 16:11:35  InnoDB: Started; log sequence number 0 43655
ydb.c:78 db_env_create flags=0

----
 the LD_RUN_PATH thing above works.


--- on laptop I did this instead:

export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/src --prefix=/home/bradley/usr

make
make install
/home/bradley/usr/bin/mysql_install_db 
/home/bradley/usr/bin/mysqld_safe &
/home/bradley/usr/bin/mysql -u root
~/mysql/bdbi/usr/bin/mysql -u root
mysql> show databases;
mysql> create database yobitest;
mysql> use yobitest;
mysql> create table t1 (i int) engine=bdb;

Look for the error in ~/usr/var/localhost.localdomain.err

---
To clean up after a total screwup:

rm -rf ~/usr/var/

Didn't manage to clean it up very well.

---
Goal: compiler mysql wiht debugging

export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure CFLAGS="-g -O2" --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/src --prefix=/home/bradley/usr

If you want to debug, you might need to start mysqld without using mysqld_safe.
Here is one way to do it:

gdb ~/usr/libexec/mysqld
(gdb) run --basedir=/home/bradley/usr --datadir=/home/bradley/usr/var --pid-file=/home/bradley/usr/var/localhost.localdomain.pid --skip-external-locking


That was screwed up (the configure args were wrong.)  Try again:

---
export LD_RUN_PATH=/home/bradley/yobiduck/ydb/src
./configure CXXFLAGS="-g -O2" CFLAGS="-g -O2" --with-berkeley-db-includes=/home/bradley/yobiduck/ydb/include --with-berkeley-db --with-berkeley-db-libs=/home/bradley/yobiduck/ydb/src --prefix=/home/bradley/usr

gdb ~/usr/libexec/mysqld
(gdb) run --basedir=/home/bradley/usr --datadir=/home/bradley/usr/var --pid-file=/home/bradley/usr/var/localhost.localdomain.pid --skip-external-locking