Default to DB_TXN_WRITE_NOSYNC for all transactional operations
authorJeff Garzik <jgarzik@exmulti.com>
Sat, 19 May 2012 05:25:06 +0000 (01:25 -0400)
committerGavin Andresen <gavinandresen@gmail.com>
Tue, 19 Jun 2012 19:23:42 +0000 (15:23 -0400)
commit7c1773cf37ce52958c3287363c0690c591e3c364
tree1988065ce6bf4348c0374bb4bd8d5b0ac3d1219b
parent28a498d5a6794bce952fe8a1938720b73946c1d8
Default to DB_TXN_WRITE_NOSYNC for all transactional operations

* This is safer than DB_TXN_NOSYNC, and does not appear to impact
  performance.
* Applying this to the dbenv is necessary to avoid many fdatasync(2)
  calls on db 5.x
* We carefully and thoroughly flush databases upon shutdown and
  other important events already.
src/db.cpp
src/db.h