Replace Berkeley DB with SQLite 3
authorTerry Wilson <twilson@digium.com>
Wed, 6 Jul 2011 20:58:12 +0000 (20:58 +0000)
committerTerry Wilson <twilson@digium.com>
Wed, 6 Jul 2011 20:58:12 +0000 (20:58 +0000)
commitefd040cd11cff99a9dccf54c030a134d9a1e2e07
treeb4a3f36ffe91a5226485088c3bb2c5c6ac698fa1
parenta7c6f0445e7bbd1f7aea1687eae52c3ca7cd5756
Replace Berkeley DB with SQLite 3

There were some bugs in the very ancient version of Berkeley DB that Asterisk
used. Instead of spending the time tracking down the bugs in the Berkeley code
we move to the much better documented SQLite 3.

Conversion of the old astdb happens at runtime by running the included
astdb2sqlite3 utility. The ast_db API with SQLite 3 backend should behave
identically to the old Berkeley backend, but in the future we could offer a
much more robust interface.

We do not include the SQLite 3 library in the source tree, but instead rely
upon the distribution-provided libraries. SQLite is so ubiquitous that this
should not place undue burden on administrators.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@326589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
60 files changed:
CHANGES
Makefile
UPGRADE.txt
configure
configure.ac
main/Makefile
main/asterisk.c
main/db.c
tests/test_db.c
utils/Makefile
utils/astdb2sqlite3.c [new file with mode: 0644]
utils/db1-ast/Makefile [moved from main/db1-ast/Makefile with 100% similarity]
utils/db1-ast/btree/bt_close.c [moved from main/db1-ast/btree/bt_close.c with 100% similarity]
utils/db1-ast/btree/bt_conv.c [moved from main/db1-ast/btree/bt_conv.c with 100% similarity]
utils/db1-ast/btree/bt_debug.c [moved from main/db1-ast/btree/bt_debug.c with 100% similarity]
utils/db1-ast/btree/bt_delete.c [moved from main/db1-ast/btree/bt_delete.c with 100% similarity]
utils/db1-ast/btree/bt_get.c [moved from main/db1-ast/btree/bt_get.c with 100% similarity]
utils/db1-ast/btree/bt_open.c [moved from main/db1-ast/btree/bt_open.c with 100% similarity]
utils/db1-ast/btree/bt_overflow.c [moved from main/db1-ast/btree/bt_overflow.c with 100% similarity]
utils/db1-ast/btree/bt_page.c [moved from main/db1-ast/btree/bt_page.c with 100% similarity]
utils/db1-ast/btree/bt_put.c [moved from main/db1-ast/btree/bt_put.c with 100% similarity]
utils/db1-ast/btree/bt_search.c [moved from main/db1-ast/btree/bt_search.c with 100% similarity]
utils/db1-ast/btree/bt_seq.c [moved from main/db1-ast/btree/bt_seq.c with 100% similarity]
utils/db1-ast/btree/bt_split.c [moved from main/db1-ast/btree/bt_split.c with 100% similarity]
utils/db1-ast/btree/bt_utils.c [moved from main/db1-ast/btree/bt_utils.c with 100% similarity]
utils/db1-ast/btree/btree.h [moved from main/db1-ast/btree/btree.h with 100% similarity]
utils/db1-ast/btree/extern.h [moved from main/db1-ast/btree/extern.h with 100% similarity]
utils/db1-ast/db/db.c [moved from main/db1-ast/db/db.c with 100% similarity]
utils/db1-ast/hash/README [moved from main/db1-ast/hash/README with 100% similarity]
utils/db1-ast/hash/extern.h [moved from main/db1-ast/hash/extern.h with 100% similarity]
utils/db1-ast/hash/hash.c [moved from main/db1-ast/hash/hash.c with 100% similarity]
utils/db1-ast/hash/hash.h [moved from main/db1-ast/hash/hash.h with 100% similarity]
utils/db1-ast/hash/hash_bigkey.c [moved from main/db1-ast/hash/hash_bigkey.c with 100% similarity]
utils/db1-ast/hash/hash_buf.c [moved from main/db1-ast/hash/hash_buf.c with 100% similarity]
utils/db1-ast/hash/hash_func.c [moved from main/db1-ast/hash/hash_func.c with 100% similarity]
utils/db1-ast/hash/hash_log2.c [moved from main/db1-ast/hash/hash_log2.c with 100% similarity]
utils/db1-ast/hash/hash_page.c [moved from main/db1-ast/hash/hash_page.c with 100% similarity]
utils/db1-ast/hash/hsearch.c [moved from main/db1-ast/hash/hsearch.c with 100% similarity]
utils/db1-ast/hash/ndbm.c [moved from main/db1-ast/hash/ndbm.c with 100% similarity]
utils/db1-ast/hash/page.h [moved from main/db1-ast/hash/page.h with 100% similarity]
utils/db1-ast/hash/search.h [moved from main/db1-ast/hash/search.h with 100% similarity]
utils/db1-ast/include/circ-queue.h [moved from main/db1-ast/include/circ-queue.h with 100% similarity]
utils/db1-ast/include/compat.h [moved from main/db1-ast/include/compat.h with 100% similarity]
utils/db1-ast/include/db.h [moved from main/db1-ast/include/db.h with 100% similarity]
utils/db1-ast/include/mpool.h [moved from main/db1-ast/include/mpool.h with 100% similarity]
utils/db1-ast/include/ndbm.h [moved from main/db1-ast/include/ndbm.h with 100% similarity]
utils/db1-ast/libdb.map [moved from main/db1-ast/libdb.map with 100% similarity]
utils/db1-ast/mpool/README [moved from main/db1-ast/mpool/README with 100% similarity]
utils/db1-ast/mpool/mpool.c [moved from main/db1-ast/mpool/mpool.c with 98% similarity]
utils/db1-ast/recno/extern.h [moved from main/db1-ast/recno/extern.h with 100% similarity]
utils/db1-ast/recno/rec_close.c [moved from main/db1-ast/recno/rec_close.c with 100% similarity]
utils/db1-ast/recno/rec_delete.c [moved from main/db1-ast/recno/rec_delete.c with 100% similarity]
utils/db1-ast/recno/rec_get.c [moved from main/db1-ast/recno/rec_get.c with 100% similarity]
utils/db1-ast/recno/rec_open.c [moved from main/db1-ast/recno/rec_open.c with 100% similarity]
utils/db1-ast/recno/rec_put.c [moved from main/db1-ast/recno/rec_put.c with 100% similarity]
utils/db1-ast/recno/rec_search.c [moved from main/db1-ast/recno/rec_search.c with 100% similarity]
utils/db1-ast/recno/rec_seq.c [moved from main/db1-ast/recno/rec_seq.c with 100% similarity]
utils/db1-ast/recno/rec_utils.c [moved from main/db1-ast/recno/rec_utils.c with 100% similarity]
utils/db1-ast/recno/recno.h [moved from main/db1-ast/recno/recno.h with 100% similarity]
utils/utils.xml