mariadb/src
John Esmet 25ac82a5c5 [t:4372] marked off some possible errors, fixing comment on top of brt.c
git-svn-id: file:///svn/toku/tokudb@39202 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:00:07 -04:00
..
lock_tree #4374 fix a lock tree debug print refs[t:4374] 2013-04-17 00:00:04 -04:00
range_tree #4052 merge test case from 506 to main refs[t:4052] 2013-04-16 23:59:53 -04:00
tests #4429 get test_set_lk_max_locks running on BDB 5.3 refs[t:4429] 2013-04-17 00:00:07 -04:00
elocks.c #3452 new row locking APIs refs[t:3452] 2013-04-16 23:59:50 -04:00
errors.c Addresses #1765 Merge [12079] into main (pthreads-win32 for windows) 2013-04-16 23:57:53 -04:00
export.map [t:3923], merge to main 2013-04-16 23:59:50 -04:00
indexer-internal.h #3258 fix the hot indexer when txn is committing or aborting refs[t:3258] 2013-04-16 23:59:36 -04:00
indexer-undo-do.c #4137 remove atomic.h refs[t:4137] 2013-04-16 23:59:57 -04:00
indexer.c #4137 remove atomic.h refs[t:4137] 2013-04-16 23:59:57 -04:00
indexer.h #3052 document the indexer object relationships and API closes[t:3052] 2013-04-16 23:59:32 -04:00
loader.c #4137 remove atomic.h refs[t:4137] 2013-04-16 23:59:57 -04:00
loader.h [t:3034] Update engine status for new functionality. 2013-04-16 23:59:33 -04:00
Makefile #4096 add version string to portability lib name refs[t:4096] 2013-04-17 00:00:02 -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 close[t:4273] Fix #4273. {{{svn merge -r 37842:37875 ../tokudb.4273}}}. 2013-04-16 23:59:59 -04:00
ydb.c [t:4372] marked off some possible errors, fixing comment on top of brt.c 2013-04-17 00:00:07 -04:00
ydb.h #3258 changes found during code review refs[t:3258] 2013-04-16 23:59:36 -04:00
ydb_lib.c closes[t:2515] Accurately distinguish between 32bit and 64bit windows 2013-04-16 23:59:06 -04:00
ydb_load.h [t:3196] Fix iname generation: only dictionaries created by brtloader 2013-04-16 23:59:35 -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