Permalink
Commits on Dec 4, 2009
  1. The value to binary line in do_put was accidentally duplicated making…

    Jon Meredith authored and toland committed Jun 29, 2009
    … extra work on a put.
  2. Moved check_all_databases_closed inside check for G_DB_ENV != NULL, o…

    Jon Meredith authored and toland committed Jun 29, 2009
    …therwise
    
    fails on LOCK_DATABASE when G_DATABASES_MUTEX is uninitialized.
Commits on Aug 10, 2009
Commits on Jun 23, 2009
  1. Updated Jon's email address.

    Phillip Toland
    Phillip Toland committed Jun 23, 2009
  2. Added a simple readme file.

    Phillip Toland
    Phillip Toland committed Jun 23, 2009
  3. Added license information.

    Phillip Toland
    Phillip Toland committed Jun 23, 2009
  4. Made test closer to what was happening in production. Sometimes fails…

    Phillip Toland
    Phillip Toland committed Jun 23, 2009
    … with BDB Error: assert failure: ../dist/../mp/mp_fget.c/257: "bhp != NULL", also seen it run with CRC errors.
  5. Version bump for release 12.

    Phillip Toland
    Phillip Toland committed Jun 19, 2009
  6. Cleaned up the const != var tests to var != const.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 19, 2009
  7. Cleaned up driver

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 19, 2009
     - removed the lock checks now we are happy with the mutex
     - replaced 'const == var' tests with 'var == const' to make code consistent.
  8. Relaced G_DATABASES rwlock with a mutex.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 19, 2009
  9. Added extra paranoia around G_DATABASES, checking it is valid at lock…

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 19, 2009
    … and unlock.
  10. The read lock checks for the G_DATABASES rwlock were incorrect. Multi…

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 19, 2009
    …ple 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.
  11. Heavily instrumented rwlock code - rwlock seems to be misbehaving.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 18, 2009
    About to replace with a mutex.wq
  12. Improved debug output on driver stop.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 19, 2009
    Disabled active_dbs counter as coredump went away.
  13. Added active counts to dbref and portref to help see what is being co…

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 18, 2009
    …rrupted
    
    in the coredump.
  14. Added extra debug/paranoia on bdberl_drv_stop/bdberl_drv_finish while

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 18, 2009
    looking for the coredump on port close discovered on the local storage ops
    inside coordinator branch.
  15. Added versions of transaction() and update() that take a transaction

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 15, 2009
    timeout.
  16. Refactored environment variable checks. All go through common functions

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 11, 2009
    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).
  17. Refactored common receive loops from many functions into recv_val() a…

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 10, 2009
    …nd recv_ok().
  18. Added bdberl:driver_info() function to get driver parameters.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 10, 2009
  19. Forgot to rename DBGCMDX for non-debug build.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 10, 2009
  20. Cleaned up debugging code.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 10, 2009
  21. Broke stats code out into bdberl_stats.h module.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 9, 2009
    Had to rename some functions that became non-static.
    Added some accessors to module static variables as needed.
  22. Added more comprehensive debug output if built with debug=1.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 9, 2009
    Made deadlock checker interval configurable.
  23. Made size of thread pools configurable from environment variables

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 8, 2009
    BDBERL_NUM_GENERAL_THREADS and BDBERL_NUM_TXN_THREADS.
  24. Forgot to remove a couple of unnecessary work_buffer copies.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 8, 2009
  25. Converted truncate to use async_dbref.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 8, 2009
  26. Changed stats functions to use async_dbref/async_flags to pass parame…

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 8, 2009
    …ters
    
    to async functions rather than work buffer.
  27. In cases where there was more than one pending request and no active …

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 5, 2009
    …requests,
    
    the linked list would be corrupted linking the pending request on the list of
    active requests.
  28. Incorporated Diz's crc generation/checking patch to bdberl.erl.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 4, 2009
    Added crc checking before/after BDB accesses in C driver.
    Changed get to use malloc DBTs rather than the user supplied buffer
    previously.
  29. Removed unused line.

    Jon Meredith Phillip Toland
    Jon Meredith authored and Phillip Toland committed Jun 2, 2009
Commits on Jun 2, 2009
  1. Added stop(). Closes #318.

    Jon Meredith
    Jon Meredith committed Jun 2, 2009
  2. Replaced calls to getenv with erl_drv_getenv/G_DB_ENV->get_home. The …

    Jon Meredith
    Jon Meredith committed Jun 2, 2009
    …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.
  3. Merge branch 'master' of git.rascal:/var/git/commons/bdberl

    Dave Smith
    Dave Smith committed Jun 2, 2009
    Conflicts:
    	c_src/bdberl_drv.c
    	c_src/buildlib.sh
    	src/bdberl.erl