Commit graph

  • d0c587bdec Various fixes. master Gregory Burd 2011-12-05 12:16:25 -0500
  • 1f7ca0c189 Use proper string formats Gregory Burd 2011-12-04 15:16:54 -0500
  • 3d7a6e41c6 Use a more portable method to determine if PID is alive or not. Gregory Burd 2011-12-04 15:04:55 -0500
  • 92c906f105 Fix macros so that they use their arguments properly. Gregory Burd 2011-12-04 14:47:32 -0500
  • 91d10a7d51 Error messages Gregory Burd 2011-12-04 14:46:13 -0500
  • d7659ea8c1 Add BDB failchk support which requires thread_id and is_alive (implement thread_id_string while we're at it). Gregory Burd 2011-12-04 14:45:30 -0500
  • 30b89d7808 Change scope of debugging macros. Gregory Burd 2011-12-04 14:42:30 -0500
  • b649dc7d3b Whitespace and formatting only. Gregory Burd 2011-12-04 14:38:46 -0500
  • 12e3012a05 Transmit BDB event notifications into Erlang port driver. Gregory Burd 2011-12-03 10:23:40 -0500
  • 9021359752 Merge remote-tracking branch 'origin/master' Gregory Burd 2011-12-03 09:51:44 -0500
  • fed8c726e2 Ensure all databases are opened with auto commit enabled. Gregory Burd 2011-12-03 09:45:43 -0500
  • eed6dfdf3a A cursor get() of an undefined Key will position the cursor. Gregory Burd 2011-12-03 09:44:59 -0500
  • 5e0c4ff384 Consistently use 'Result' rather than a mix of 'Rc' and 'Result' Gregory Burd 2011-12-01 16:24:53 -0500
  • b70d9b8afa Add support for cursor->count() Gregory Burd 2011-12-01 14:38:22 -0500
  • 11c864d949 Whitespace and log message formatting fixes. Gregory Burd 2011-12-01 14:34:16 -0500
  • 63eb48ec24 Delete just sends back ok for success fix-deletes Gregory Burd 2011-12-01 08:13:45 -0500
  • ea7c83b32c Enable the two delete test cases. Currently the tests will hang as they execute these tests. Gregory Burd 2011-11-30 15:01:40 -0500
  • dfa71be3c5 Merge branches 'lager-integration' and 'master' Gregory Burd 2011-11-30 14:58:34 -0500
  • 72cf45ff3f Use lager for all log messages lager-integration Gregory Burd 2011-11-30 14:44:39 -0500
  • 7fc539984f Merge branch 'master', remote-tracking branch 'origin' Gregory Burd 2011-11-29 13:42:21 -0500
  • 542f70443a Add me to the list. Gregory Burd 2011-11-29 13:42:06 -0500
  • 21017f2d95 Merge branch 'master', remote-tracking branch 'origin' Gregory Burd 2011-11-28 18:44:21 -0500
  • ad64781df6 Auto-download of db package now works properly. Gregory Burd 2011-11-28 18:39:53 -0500
  • daa79ac912 Merge branch 'master' of git://github.com/jonmeredith/bdberl Gregory Burd 2011-11-28 16:44:33 -0500
  • 05b81cdc3b Test bdb:del within a transaction, then abort. Gregory Burd 2011-11-28 16:22:08 -0500
  • 7ff11a42a8 Consistently use driver_(alloc,realloc,free). Gregory Burd 2011-11-28 16:02:00 -0500
  • 1d28a6f5f5 Add thrash test. Gregory Burd 2011-11-28 15:59:57 -0500
  • 00f5549644 Cleanup Gregory Burd 2011-11-28 14:08:27 -0500
  • 564b87a78a Whitespace Gregory Burd 2011-11-28 13:56:28 -0500
  • f32973b044 Grab a reduced tar-ball from GitHub gburd/libdb Gregory Burd 2011-11-28 13:41:16 -0500
  • 3e1fba24a4 No longer needed. merge-changes-from-kpy3 Gregory Burd 2011-11-28 12:39:50 -0500
  • db1eb122c6 Merge branch 'master' of git://github.com/kpy3/bdberl into merge-changes-from-kpy3 Gregory Burd 2011-11-28 12:37:59 -0500
  • 27438453bb Add support for cursor_get() which is used to position the cursor as well as to get items based on its location. Gregory Burd 2011-11-27 21:03:02 -0500
  • a29ccf2f22 Whitespace Gregory Burd 2011-11-27 21:01:43 -0500
  • 469bf225a2 Added del()ete to Erlang API. Gregory Burd 2011-08-10 17:26:19 -0400
  • d9ece6b7a9 Rakefile no longer needed, we use Rebar now (and some make/sh). Gregory Burd 2011-08-09 15:05:11 -0400
  • c8ec903721 Fix version, it should match Berkeley DB. Gregory Burd 2011-08-09 15:02:04 -0400
  • 1f38bf630e Now passing all tests. Gregory Burd 2011-08-09 12:15:08 -0400
  • 7b1350f899 Updated to Oracle Berkeley DB version 5.2.28 Gregory Burd 2011-08-09 11:01:44 -0400
  • 2983416786 Add a recent copy of rebar. Gregory Burd 2011-08-08 16:29:34 -0400
  • 367baa8249 Add a simple .app.src file to use with rebar. Gregory Burd 2011-08-08 16:29:06 -0400
  • d9cfac5197 Add a simple Makefile that calls rebar. Gregory Burd 2011-08-08 16:28:40 -0400
  • 5b3f7fb6e2 Remove diagnostic flags - unneeded Sergey Yelin 2011-07-18 19:43:56 +0400
  • fad7dd5129 Sync flags and DB codes Sergey Yelin 2011-07-18 19:39:14 +0400
  • 7bdfbacdc9 Fix flags (changed in 5.x) Sergey Yelin 2011-07-18 19:37:57 +0400
  • e874dbf319 Do not force pthread and add more diagnostic Sergey Yelin 2011-07-18 18:26:48 +0400
  • 7768ac22e0 Fix statrt for cases when application not running. Sergey Yelin 2011-07-18 16:04:06 +0400
  • 38643c5fb4 More cleanups Sergey Yelin 2011-07-18 15:47:57 +0400
  • a1291880df Disable stress test for now Sergey Yelin 2011-07-18 15:37:32 +0400
  • 08c55326fe Remove DEBUG flag Sergey Yelin 2011-07-18 12:19:17 +0400
  • 5f73c3f32e Make this run on Debian/Ubuntu Sergey Yelin 2011-07-18 11:50:39 +0400
  • 9673962a87 More cleanups Sergey Yelin 2011-07-18 11:28:38 +0400
  • fa4ef58c02 Add myself Sergey Yelin 2011-07-18 11:23:55 +0400
  • 91350213d2 Cleanup Sergey Yelin 2011-07-18 11:18:43 +0400
  • e3e0c7c3ee Add erlang flags Sergey Yelin 2011-07-18 11:18:29 +0400
  • 0163145b5b Auto download Berkeley DB from Oralce then needed Sergey Yelin 2011-07-18 10:59:48 +0400
  • a765b45841 Changes Sergey Yelin 2011-07-17 23:55:48 +0400
  • 7ab049b119 Bump up BerkeleyDB version to 5.1.25 Sergey Yelin 2011-07-17 23:50:40 +0400
  • b45cf7c743 The value to binary line in do_put was accidentally duplicated making extra work on a put. Jon Meredith 2009-06-30 00:12:42 +0800
  • 25a78e0b8e Moved check_all_databases_closed inside check for G_DB_ENV != NULL, otherwise fails on LOCK_DATABASE when G_DATABASES_MUTEX is uninitialized. Jon Meredith 2009-06-30 00:11:41 +0800
  • f14f426828 Download the BDB source code on demand. Phillip Toland 2009-08-10 12:44:09 -0500
  • cfd8bc9bb1 The value to binary line in do_put was accidentally duplicated making extra work on a put. Jon Meredith 2009-06-29 10:12:42 -0600
  • 9621cb0043 Moved check_all_databases_closed inside check for G_DB_ENV != NULL, otherwise fails on LOCK_DATABASE when G_DATABASES_MUTEX is uninitialized. Jon Meredith 2009-06-29 10:11:41 -0600
  • e20a91e082 Updated Jon's email address. Phillip Toland 2009-06-23 15:27:37 -0500
  • a76f20f477 Added a simple readme file. Phillip Toland 2009-06-23 14:24:13 -0500
  • 09184b0399 Added license information. Phillip Toland 2009-06-23 14:22:11 -0500
  • 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. Phillip Toland 2009-06-23 15:16:59 -0500
  • 1a01292853 Version bump for release 12. RELEASE-12 Phillip Toland 2009-06-19 15:56:04 -0500
  • 663e7f24ec Cleaned up the const != var tests to var != const. Jon Meredith 2009-06-19 13:54:38 -0600
  • 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. Jon Meredith 2009-06-19 13:20:38 -0600
  • 783acf09ba Relaced G_DATABASES rwlock with a mutex. Jon Meredith 2009-06-19 09:54:05 -0600
  • 425d8ddf00 Added extra paranoia around G_DATABASES, checking it is valid at lock and unlock. Jon Meredith 2009-06-19 09:46:18 -0600
  • 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. Jon Meredith 2009-06-19 08:44:43 -0600
  • 3d422bec1d Heavily instrumented rwlock code - rwlock seems to be misbehaving. About to replace with a mutex.wq Jon Meredith 2009-06-18 15:14:10 -0600
  • bfb1620fb8 Improved debug output on driver stop. Disabled active_dbs counter as coredump went away. Jon Meredith 2009-06-19 08:48:27 -0600
  • 2077413b9e Added active counts to dbref and portref to help see what is being corrupted in the coredump. Jon Meredith 2009-06-18 09:09:29 -0600
  • 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. Jon Meredith 2009-06-18 08:07:14 -0600
  • 254e253d81 Added versions of transaction() and update() that take a transaction timeout. Jon Meredith 2009-06-15 15:22:43 -0600
  • 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). Jon Meredith 2009-06-11 09:17:46 -0600
  • e295227147 Refactored common receive loops from many functions into recv_val() and recv_ok(). Jon Meredith 2009-06-10 14:43:33 -0600
  • 13240670c3 Added bdberl:driver_info() function to get driver parameters. Jon Meredith 2009-06-10 14:18:26 -0600
  • 1cc42dae71 Forgot to rename DBGCMDX for non-debug build. Jon Meredith 2009-06-10 08:07:58 -0600
  • a3ae101dfb Cleaned up debugging code. Jon Meredith 2009-06-10 08:07:00 -0600
  • 1e3b89e24e Broke stats code out into bdberl_stats.h module. Had to rename some functions that became non-static. Added some accessors to module static variables as needed. Jon Meredith 2009-06-09 15:06:12 -0600
  • 6fe6651757 Added more comprehensive debug output if built with debug=1. Made deadlock checker interval configurable. Jon Meredith 2009-06-09 14:00:43 -0600
  • 19addac0fe Made size of thread pools configurable from environment variables BDBERL_NUM_GENERAL_THREADS and BDBERL_NUM_TXN_THREADS. Jon Meredith 2009-06-08 11:14:02 -0600
  • 497b9ca70f Forgot to remove a couple of unnecessary work_buffer copies. Jon Meredith 2009-06-08 11:02:05 -0600
  • 56c1617f8e Converted truncate to use async_dbref. Jon Meredith 2009-06-08 11:00:09 -0600
  • def6d9376a Changed stats functions to use async_dbref/async_flags to pass parameters to async functions rather than work buffer. Jon Meredith 2009-06-08 10:56:34 -0600
  • 512cec599e In cases where there was more than one pending request and no active requests, the linked list would be corrupted linking the pending request on the list of active requests. Jon Meredith 2009-06-05 16:00:25 -0600
  • 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. Jon Meredith 2009-06-04 14:54:27 -0600
  • 700ac5c562 Removed unused line. Jon Meredith 2009-06-02 13:57:35 -0600
  • 30fba1c995 Added stop(). Closes #318. Jon Meredith 2009-06-02 13:36:07 -0600
  • 30c7ad75ac Replaced calls to getenv with erl_drv_getenv/G_DB_ENV->get_home. The erlang docs say not to use getenv in erlang drivers as they are not thread safe. The places we were using them were very unlikley to have issues, but you never know. Jon Meredith 2009-06-02 13:14:47 -0600
  • ebd06de3da Merge branch 'master' of git.rascal:/var/git/commons/bdberl Dave Smith 2009-06-02 10:06:36 -0600
  • 88608807b4 Enabling diagnostics/debug info in bdberl build Dave Smith 2009-06-02 10:04:04 -0600
  • 58b870d15c Removed decode_rc calls that are now decoded within bdberl_drv.c Jon Meredith 2009-06-01 15:52:06 -0600
  • 40393a8e62 Cleaned up driver finish function to make sure resources had been allocated before they were freed. Jon Meredith 2009-06-01 12:14:26 -0600
  • 9361739244 Removed debug statements left in by accident. Jon Meredith 2009-05-29 13:49:49 -0600
  • 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. Jon Meredith 2009-05-29 13:45:58 -0600