mariadb/src
Zardosht Kasheff 489122a8ae refs #5633, add test to CMakeLists.txt
git-svn-id: file:///svn/toku/tokudb@49342 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:14 -04:00
..
lock_tree refs #5368 unify race detection tool annotations in <toku_race_tools.h> 2013-04-17 00:01:11 -04:00
range_tree refs #5525 remove obsolete Makefiles 2013-04-17 00:01:10 -04:00
tests refs #5633, add test to CMakeLists.txt 2013-04-17 00:01:14 -04:00
CMakeLists.txt refs #5592 fix linking of util, again... 2013-04-17 00:01:13 -04:00
errors.cc fixes #5423 fixes #5424 fixes #5503 fixes #5225 fsync always succeeds and returns void, no more ft panic or logger panic, no more impossible error paths 2013-04-17 00:01:08 -04:00
export.map refs #5368 remove reference to toku_os_get_max_rss in export.map 2013-04-17 00:01:11 -04:00
indexer-internal.h closes #5206 merge c++ changes to mainline 2013-04-17 00:00:59 -04:00
indexer-undo-do.cc refs #5504 take a step back, this is apparently not trivial 2013-04-17 00:01:08 -04:00
indexer.cc refs #5504 take a step back, this is apparently not trivial 2013-04-17 00:01:08 -04:00
indexer.h closes #5206 merge c++ changes to mainline 2013-04-17 00:00:59 -04:00
loader.cc refs #5481, fix toku_loader_close to redirect to empty dictionary if there is an error 2013-04-17 00:01:13 -04:00
loader.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
README Rename 2007-07-13 19:37:47 +00:00
tokuglobals.py refs #5101 log compare is dead code 2013-04-17 00:01:08 -04:00
ydb-internal.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb.cc refs #5592 move circular_buffer, omt, threadpool, growable_array, rwlock, frwlock, kibbutz, mempool, partitioned_counter, nb_mutex, sort to util/, and some other cleanup stuff 2013-04-17 00:01:13 -04:00
ydb.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb_cursor.cc refs #5368 unify race detection tool annotations in <toku_race_tools.h> 2013-04-17 00:01:11 -04:00
ydb_cursor.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb_db.cc refs #5368 unify race detection tool annotations in <toku_race_tools.h> 2013-04-17 00:01:11 -04:00
ydb_db.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb_env_func.cc fixes #5423 fixes #5424 fixes #5503 fixes #5225 fsync always succeeds and returns void, no more ft panic or logger panic, no more impossible error paths 2013-04-17 00:01:08 -04:00
ydb_env_func.h fixes #5423 fixes #5424 fixes #5503 fixes #5225 fsync always succeeds and returns void, no more ft panic or logger panic, no more impossible error paths 2013-04-17 00:01:08 -04:00
ydb_lib.cc refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb_load.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb_row_lock.cc closes #5206 merge c++ changes to mainline 2013-04-17 00:00:59 -04:00
ydb_row_lock.h closes #5206 merge c++ changes to mainline 2013-04-17 00:00:59 -04:00
ydb_txn.cc refs #5368 unify race detection tool annotations in <toku_race_tools.h> 2013-04-17 00:01:11 -04:00
ydb_txn.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -04:00
ydb_write.cc closes #5822, don't grab point write lock if DB_PRELOCKED_WRITE is passed into dbenv->update_multiple 2013-04-17 00:01:12 -04:00
ydb_write.h refs #5081 Replace all usage: 2013-04-17 00:01:01 -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