Commit graph

91 commits

Author SHA1 Message Date
Gregory Burd
9021359752 Merge remote-tracking branch 'origin/master' 2011-12-03 09:51:44 -05:00
Gregory Burd
eed6dfdf3a A cursor get() of an undefined Key will position the cursor. 2011-12-03 09:44:59 -05:00
Gregory Burd
5e0c4ff384 Consistently use 'Result' rather than a mix of 'Rc' and 'Result' 2011-12-01 16:24:53 -05:00
Gregory Burd
b70d9b8afa Add support for cursor->count() 2011-12-01 14:38:22 -05:00
Gregory Burd
11c864d949 Whitespace and log message formatting fixes. 2011-12-01 14:34:16 -05:00
Gregory Burd
63eb48ec24 Delete just sends back ok for success 2011-12-01 08:13:45 -05:00
Gregory Burd
72cf45ff3f Use lager for all log messages 2011-11-30 14:44:39 -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
c8ec903721 Fix version, it should match Berkeley DB. 2011-08-09 15:02:04 -04:00
Gregory Burd
7b1350f899 Updated to Oracle Berkeley DB version 5.2.28 2011-08-09 11:01:44 -04:00
Gregory Burd
367baa8249 Add a simple .app.src file to use with rebar. 2011-08-08 16:29:06 -04:00
Sergey Yelin
7768ac22e0 Fix statrt for cases when application not running. 2011-07-18 16:04:06 +04:00
Sergey Yelin
a765b45841 Changes 2011-07-17 23:55:48 +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
Phillip Toland
e20a91e082 Updated Jon's email address. 2009-06-23 15:27:37 -05:00
Phillip Toland
09184b0399 Added license information. 2009-06-23 15:17:05 -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
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
dc867e363b Incorporated Diz's crc generation/checking patch to bdberl.erl.
Added crc checking before/after BDB accesses in C driver.
Changed get to use malloc DBTs rather than the user supplied buffer
previously.
2009-06-23 15:02:31 -05:00
Jon Meredith
30fba1c995 Added stop(). Closes #318. 2009-06-02 13:36:07 -06:00
Dave Smith
ebd06de3da Merge branch 'master' of git.rascal:/var/git/commons/bdberl
Conflicts:
	c_src/bdberl_drv.c
	c_src/buildlib.sh
	src/bdberl.erl
2009-06-02 10:06:36 -06:00
Jon Meredith
58b870d15c Removed decode_rc calls that are now decoded within bdberl_drv.c 2009-06-01 15:52:06 -06:00
Jon Meredith
9361739244 Removed debug statements left in by accident. 2009-05-29 13:49:49 -06:00
Jon Meredith
a3462d0fa7 txn_abort() used to return ok even if no txn. The error code changes
broke that behavior.  Changed it to return ok if there was no txn.
2009-05-29 13:45:58 -06:00
Jon Meredith
1409096860 Renamed get_lg_dir() to get_lg_dir_info and added get_data_dirs_info().
Both new calls return the filesystem id and the number of mbytes available
on that filesystem.
2009-05-29 12:13:19 -06:00
Jon Meredith
553ed4eda1 Enhanced error reporting to return atoms for libc errno, common bdb errors and bdberl errors. 2009-05-29 07:26:59 -06:00
Jon Meredith
9d081c0572 Added empty flag version for each of the stat functions. 2009-05-28 12:39:14 -06:00
Jon Meredith
c74beeba9f Added transaction stats. 2009-05-28 12:05:52 -06:00
Jon Meredith
e4757031a2 Added mutex stats. 2009-05-27 16:49:18 -06:00
Jon Meredith
e80dc97d6d Added memory pool statistics. 2009-05-27 16:31:26 -06:00
Jon Meredith
62d4522580 Added log stats 2009-05-27 15:25:50 -06:00
Jon Meredith
70dd9ee11a Added lock_stat/1 and lock_stat_print/1 functions to get lock stats. 2009-05-27 15:02:58 -06:00
Jon Meredith
05c1754e7f Added stat/2 and stat_print/1, stat_print/2 functions for retrieving/displaying stats about the BDB subsystem. 2009-05-27 14:03:11 -06:00
Dave Smith
66e1b409ec Make txn begin async relative to VM 2009-05-27 11:21:35 -06:00
Dave Smith
351eb91156 Fix bad call to warning_msg 2009-05-05 10:52:25 -06:00
Dave Smith
41f7213235 Rework trickle/checkpoint to use same thread and avoid tromping on each other; add SNMP reporting to the logger 2009-04-24 09:33:01 -06:00
Dave Smith
1281a0c07f Implementing API and process for routing BDB log messages into the OTP logger 2009-04-16 07:08:50 -06:00
Phillip Toland
d6cc338707 Tweaked the type specs. 2009-03-03 12:17:30 -06:00
Phillip Toland
ca89c4001a Add parameter for txn flags to update 2009-03-03 11:45:51 -06:00
Phillip Toland
e492c51026 Added ability to pass flags to transaction/3 2009-03-03 11:37:51 -06:00
Dave Smith
c3d7638c0b Make transactions use snapshots by default; has no effect if DB not opened with support for multiversion 2009-03-02 13:33:20 -07:00
Phillip Toland
277e9cbfe6 Added definitions for more error codes. 2009-02-20 09:47:45 -06:00
Phillip Toland
5b5642a957 Fleshed out API documentation. 2009-02-19 17:06:00 -06:00
Phillip Toland
da4386967d Added skeleton documentation. 2009-02-18 17:11:12 -06:00
Phillip Toland
8b13a5aefe Bunch of changes based on input from dialyzer. 2009-02-18 15:13:09 -06:00
Phillip Toland
6e841ad8fa Fixed some specs. 2009-02-17 16:18:33 -06:00