Commit graph

76 commits

Author SHA1 Message Date
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
Phillip Toland eede56ed4f Added type specs. 2009-02-17 14:47:42 -06:00
Phillip Toland ab1e627089 Rename tune_system to get_info and remove set calls. 2009-02-16 16:57:48 -06:00
Phillip Toland fe3606b881 Check for return values in transaction/2. Closes 818. 2009-02-16 16:09:51 -06:00
Phillip Toland 6c03f7fd40 Whitespace cleanup. 2009-02-16 12:38:51 -06:00
Jon Meredith 552f2ac89a Made sure all erlang binary signed/unsigned integers match up with C data types
through the control function.
2009-02-12 13:20:14 -07:00
Phillip Toland f1342dc2bd Added variant of truncate that truncates all open databases. 2009-02-03 10:57:50 -06:00
Phillip Toland 1c11f81416 Refactored to eliminate some code duplication. 2009-02-03 09:37:08 -06:00
Phillip Toland df6222a51c Added truncate command. 2009-02-02 15:51:47 -06:00
Dave Smith 45606ddf56 Change binhelper to avoid stupid user errors; now grows the buffer on demand for the specific # of bytes; fix bugs in get_data_dirs/0 (driver and erlang caller) 2008-12-17 14:45:39 -07:00
Dave Smith 68813d0a53 Adding support for list database directories and txn'lly deleting databases 2008-12-17 13:07:36 -07:00
Phillip Toland 4494e9736d Added transaction retry logic. 2008-12-15 14:52:35 -06:00
Phillip Toland 48c5fc3f6c Handle not_found in update(). 2008-12-15 14:34:13 -06:00
Phillip Toland e154e42771 Fixed a typo that caused much pain and suffering. 2008-12-15 14:06:08 -06:00
Dave Smith 865f8958c5 Implemented support for put_commit 2008-12-15 11:47:38 -07:00
Dave Smith 2d323cb304 Adding support for cursor operations 2008-12-15 11:25:03 -07:00