Commit graph

51 commits

Author SHA1 Message Date
Dave Smith
f56351e1dc Overhaul driver to avoid use of pipes and simplify memory management 2008-12-15 09:23:19 -07:00
Phillip Toland
f20e46d756 Added a new update method that takes args to pass to the fun. 2008-12-12 15:50:44 -06:00
Phillip Toland
824ec5ef69 Fixes for 64bit Linux. 2008-12-12 15:26:20 -06:00
Phillip Toland
cf90e88428 Removed old bdberl_port module. 2008-12-12 14:57:10 -06:00
Phillip Toland
0d64ac2146 Added tests from port_SUITE. 2008-12-12 14:56:00 -06:00
Phillip Toland
e6f0cba53d Ported thrash test to new bdberl API. 2008-12-12 14:43:09 -06:00
Phillip Toland
ab3162d47c Added get_r and put_r functions that raise on error. 2008-12-12 14:18:05 -06:00
Phillip Toland
f71dd191f2 Make init/0 private and rely on lazy initialization. 2008-12-12 12:47:25 -06:00
Phillip Toland
5f2b99554a Replace bdberl_db with a merged bdberl API. 2008-12-12 12:39:51 -06:00
Phillip Toland
e1bcd7aa52 Added rough cut of db api. 2008-12-12 11:14:03 -06:00
Phillip Toland
e90e790d9c Enforce the presence of the auto_commit and threaded flags. 2008-12-11 16:43:01 -06:00
Phillip Toland
a76a2bb5fa Merge branch 'master' of ecommons@wax.hive:bdberl
Conflicts:
	src/bdberl_port.erl
2008-12-11 15:18:10 -06:00
Phillip Toland
c9a74b5be9 Added some function documentation. 2008-12-11 15:15:25 -06:00
Dave Smith
987231cef9 Adding "tune" command that lets us get/set various timeouts 2008-12-11 14:13:37 -07:00
Dave Smith
28c56837c9 Increase proc count to increase contention 2008-12-11 11:52:19 -07:00
Dave Smith
cc7d95a5b7 Adding support for trickle writes to disk 2008-12-11 11:51:55 -07:00
Phillip Toland
d1f80b68da Moved constant definitions into include file. 2008-12-11 11:35:26 -06:00
Dave Smith
3be9b64c30 Make sure to export bdberl_get/4; adjust thrash to use RMW flag to reduce deadlocks 2008-12-11 10:16:08 -07:00
Dave Smith
b4c6aae90c Merge branch 'master' of ecommons@wax.hive:bdberl
Conflicts:

	c_src/bdberl_drv.c
	src/bdberl_port.erl
2008-12-11 07:30:14 -07:00
Dave Smith
aa3928b2c3 Re-enable transaction timeouts 2008-12-10 21:39:38 -07:00
Dave Smith
26db2c0756 Changing from a single signal to a broadcast 2008-12-10 21:38:49 -07:00
Dave Smith
a71f18ee1b Now with 100% more threadiness and 50% less deadlocking 2008-12-10 19:47:00 -07:00
Dave Smith
ed0752019f Adding thrash test 2008-12-10 18:18:05 -07:00
Dave Smith
8fc3cc3701 Interstitial commit 2008-12-10 18:17:44 -07:00
Phillip Toland
71f64d9666 Added flags for the txn_commit function. 2008-12-10 17:12:16 -06:00
Phillip Toland
f743d855d8 Added flags for txn_begin function. 2008-12-10 17:05:08 -06:00
Phillip Toland
332e18e7be Added flags to get function. 2008-12-10 16:57:35 -06:00
Phillip Toland
13d1174bb5 Added all of the operation codes and flag values from db.h. 2008-12-10 16:49:17 -06:00
Phillip Toland
dfc1a98b01 Ignore TextMate project files. 2008-12-10 16:48:25 -06:00
Phillip Toland
abb8ca7946 Renamed DECODE_ macros to UNPACK_ 2008-12-10 16:05:41 -06:00
Phillip Toland
7ec347c73e Added flags to the put function. 2008-12-10 16:04:34 -06:00
Phillip Toland
eab107df7a Fixed a typo: foudn -> found 2008-12-10 15:41:41 -06:00
Dave Smith
700e66ba9d First crack at a threadpool 2008-12-10 14:31:36 -07:00
Phillip Toland
cf6ef4d296 Added flags to the close_database function. 2008-12-10 12:58:54 -06:00
Phillip Toland
d2f15bef80 Clean up and expand the binary decoding macros. 2008-12-10 12:30:52 -06:00
Phillip Toland
c5e50712e1 Add the ability to pass flags to the open_database function. 2008-12-10 10:59:40 -06:00
Phillip Toland
5b2ed7f0a1 Ignore shared libraries and test logs. 2008-12-10 10:56:50 -06:00
Dave Smith
24d712840e Adding support for not_found on get and txn abort 2008-12-09 13:46:33 -07:00
Dave Smith
a89938c472 Simplify call to test (always shows output, but that's what we use most of the time) 2008-12-09 13:20:19 -07:00
Dave Smith
11370e5cd0 Make sure to run tests with async thread pools; include debugging symbols when building driver 2008-12-09 13:19:49 -07:00
Dave Smith
86e733e45e Updated test for new API 2008-12-09 13:19:31 -07:00
Dave Smith
38bd48dff3 Adding support for calls to begin/commit txns and get/put 2008-12-09 13:19:12 -07:00
Dave Smith
2f83430708 Adding support for get/put and basic transactions 2008-12-09 13:18:55 -07:00
Dave Smith
c92a48356e Adding binary helper functions to ease crazy pointer arithmetic/copying when passing data back to erlang 2008-12-08 16:30:19 -07:00
Dave Smith
cce9f59058 Fixes for 64-bit linux, courtesy of Phil Toland 2008-12-08 15:02:09 -07:00
Dave Smith
56ece164c7 Adding test code; cleanup whitespace in driver 2008-12-08 06:59:04 -07:00
Dave Smith
ade3f99f81 Open/Close now seems to be functional 2008-12-07 23:28:04 -07:00
Dave Smith
666db57158 Adding ignore file 2008-12-07 23:27:59 -07:00
Dave Smith
20f872cdef Lots more work on getting basic system fleshed out. Basic structures in place for tracking open databases. 2008-12-06 22:08:36 -07:00
Dave Smith
f1c52ba1c9 Various cleanup/fleshout 2008-12-05 23:52:51 -07:00