Commit graph

217 commits

Author SHA1 Message Date
Gregory Burd
3e1fba24a4 No longer needed. 2011-11-28 12:39:50 -05:00
Gregory Burd
db1eb122c6 Merge branch 'master' of git://github.com/kpy3/bdberl into merge-changes-from-kpy3
Conflicts:
	Makefile
	c_src/buildlib.sh
	include/bdberl.hrl
	int_test/DB_CONFIG
	rebar
	rebar.config
	test/bdberl_SUITE.erl
2011-11-28 12:39:11 -05:00
Gregory Burd
27438453bb Add support for cursor_get() which is used to position the cursor as
well as to get items based on its location.
2011-11-27 21:03:02 -05:00
Gregory Burd
a29ccf2f22 Whitespace 2011-11-27 21:01:43 -05:00
Gregory Burd
469bf225a2 Added del()ete to Erlang API. 2011-08-10 17:26:19 -04:00
Gregory Burd
d9ece6b7a9 Rakefile no longer needed, we use Rebar now (and some make/sh). 2011-08-09 15:05:11 -04:00
Gregory Burd
c8ec903721 Fix version, it should match Berkeley DB. 2011-08-09 15:02:04 -04:00
Gregory Burd
1f38bf630e Now passing all tests. 2011-08-09 12:15:08 -04:00
Gregory Burd
7b1350f899 Updated to Oracle Berkeley DB version 5.2.28 2011-08-09 11:01:44 -04:00
Gregory Burd
2983416786 Add a recent copy of rebar. 2011-08-08 16:29:34 -04:00
Gregory Burd
367baa8249 Add a simple .app.src file to use with rebar. 2011-08-08 16:29:06 -04:00
Gregory Burd
d9cfac5197 Add a simple Makefile that calls rebar. 2011-08-08 16:28:40 -04:00
Sergey Yelin
5b3f7fb6e2 Remove diagnostic flags - unneeded 2011-07-18 19:43:56 +04:00
Sergey Yelin
fad7dd5129 Sync flags and DB codes 2011-07-18 19:39:14 +04:00
Sergey Yelin
7bdfbacdc9 Fix flags (changed in 5.x) 2011-07-18 19:37:57 +04:00
Sergey Yelin
e874dbf319 Do not force pthread and add more diagnostic 2011-07-18 18:26:48 +04:00
Sergey Yelin
7768ac22e0 Fix statrt for cases when application not running. 2011-07-18 16:04:06 +04:00
Sergey Yelin
38643c5fb4 More cleanups 2011-07-18 15:47:57 +04:00
Sergey Yelin
a1291880df Disable stress test for now 2011-07-18 15:37:32 +04:00
Sergey Yelin
08c55326fe Remove DEBUG flag 2011-07-18 12:19:17 +04:00
Sergey Yelin
5f73c3f32e Make this run on Debian/Ubuntu 2011-07-18 11:50:39 +04:00
Sergey Yelin
9673962a87 More cleanups 2011-07-18 11:28:38 +04:00
Sergey Yelin
fa4ef58c02 Add myself 2011-07-18 11:23:55 +04:00
Sergey Yelin
91350213d2 Cleanup 2011-07-18 11:18:43 +04:00
Sergey Yelin
e3e0c7c3ee Add erlang flags 2011-07-18 11:18:29 +04:00
Sergey Yelin
0163145b5b Auto download Berkeley DB from Oralce then needed 2011-07-18 10:59:48 +04:00
Sergey Yelin
a765b45841 Changes 2011-07-17 23:55:48 +04:00
Sergey Yelin
7ab049b119 Bump up BerkeleyDB version to 5.1.25 2011-07-17 23:50:40 +04:00
Jon Meredith
b45cf7c743 The value to binary line in do_put was accidentally duplicated making extra work on a put. 2009-12-05 04:37:33 +08:00
Jon Meredith
25a78e0b8e Moved check_all_databases_closed inside check for G_DB_ENV != NULL, otherwise
fails on LOCK_DATABASE when G_DATABASES_MUTEX is uninitialized.
2009-12-05 04:37:33 +08:00
Phillip Toland
f14f426828 Download the BDB source code on demand. 2009-08-10 12:44:09 -05:00
Phillip Toland
e20a91e082 Updated Jon's email address. 2009-06-23 15:27:37 -05:00
Phillip Toland
a76f20f477 Added a simple readme file. 2009-06-23 15:17:05 -05:00
Phillip Toland
09184b0399 Added license information. 2009-06-23 15:17:05 -05:00
Phillip Toland
37c84d760f Made test closer to what was happening in production. Sometimes fails with BDB Error: assert failure: ../dist/../mp/mp_fget.c/257: "bhp != NULL", also seen it run with CRC errors. 2009-06-23 15:16:59 -05:00
Phillip Toland
1a01292853 Version bump for release 12. 2009-06-23 15:05:29 -05:00
Jon Meredith
663e7f24ec Cleaned up the const != var tests to var != const. 2009-06-23 15:05:21 -05:00
Jon Meredith
0affeb825c Cleaned up driver
- removed the lock checks now we are happy with the mutex
 - replaced 'const == var' tests with 'var == const' to make code consistent.
2009-06-23 15:02:33 -05:00
Jon Meredith
783acf09ba Relaced G_DATABASES rwlock with a mutex. 2009-06-23 15:02:33 -05:00
Jon Meredith
425d8ddf00 Added extra paranoia around G_DATABASES, checking it is valid at lock and unlock. 2009-06-23 15:02:33 -05:00
Jon Meredith
7c9da71b18 The read lock checks for the G_DATABASES rwlock were incorrect. Multiple readers
are possible.  Now the check for exclusive port/thread is only done on writes.

Added an integration test that reproduces conditions seen during the local-storage-ops-
in-coord branch.
2009-06-23 15:02:33 -05:00
Jon Meredith
3d422bec1d Heavily instrumented rwlock code - rwlock seems to be misbehaving.
About to replace with a mutex.wq
2009-06-23 15:02:33 -05:00
Jon Meredith
bfb1620fb8 Improved debug output on driver stop.
Disabled active_dbs counter as coredump went away.
2009-06-23 15:02:33 -05:00
Jon Meredith
2077413b9e Added active counts to dbref and portref to help see what is being corrupted
in the coredump.
2009-06-23 15:02:33 -05:00
Jon Meredith
86f39286b1 Added extra debug/paranoia on bdberl_drv_stop/bdberl_drv_finish while
looking for the coredump on port close discovered on the local storage ops
inside coordinator branch.
2009-06-23 15:02:33 -05:00
Jon Meredith
254e253d81 Added versions of transaction() and update() that take a transaction
timeout.
2009-06-23 15:02:33 -05:00
Jon Meredith
92b7c3a6ef Refactored environment variable checks. All go through common functions
that validate conversion to unsigned int and prints an error message
on stderr if not used (would prefer to use SASL but it's as good as it
gets during driver setup).
2009-06-23 15:02:33 -05:00
Jon Meredith
e295227147 Refactored common receive loops from many functions into recv_val() and recv_ok(). 2009-06-23 15:02:32 -05:00
Jon Meredith
13240670c3 Added bdberl:driver_info() function to get driver parameters. 2009-06-23 15:02:32 -05:00
Jon Meredith
1cc42dae71 Forgot to rename DBGCMDX for non-debug build. 2009-06-23 15:02:32 -05:00