ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/BDB/BDB.pm
(Generate patch)

Comparing BDB/BDB.pm (file contents):
Revision 1.63 by root, Fri Jul 29 09:30:19 2011 UTC vs.
Revision 1.66 by root, Fri Apr 11 04:25:57 2014 UTC

110use base 'Exporter'; 110use base 'Exporter';
111 111
112our $VERSION; 112our $VERSION;
113 113
114BEGIN { 114BEGIN {
115 $VERSION = '1.89'; 115 $VERSION = '1.91';
116 116
117 our @BDB_REQ = qw( 117 our @BDB_REQ = qw(
118 db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect 118 db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect
119 db_env_memp_sync db_env_memp_trickle db_env_dbrename db_env_dbremove 119 db_env_memp_sync db_env_memp_trickle db_env_dbrename db_env_dbremove
120 db_env_log_archive 120 db_env_log_archive
771 771
772=head2 Unexpected Crashes 772=head2 Unexpected Crashes
773 773
774Remember that, by default, BDB will execute requests in parallel, in 774Remember that, by default, BDB will execute requests in parallel, in
775somewhat random order. That means that it is easy to run a C<db_get> 775somewhat random order. That means that it is easy to run a C<db_get>
776request on thesa me database as a concurrent C<db_close> request, leading 776request on the same database as a concurrent C<db_close> request, leading
777to a crash, silent data corruption, eventually the next world war on 777to a crash, silent data corruption, eventually the next world war on
778terrorism. 778terrorism.
779 779
780If you only ever use foreground requests (without a callback), this will 780If you only ever use foreground requests (without a callback), this will
781not be an issue. 781not be an issue (unless you use threads).
782 782
783=head2 Unexpected Freezes or Deadlocks 783=head2 Unexpected Freezes or Deadlocks
784 784
785Remember that, by default, BDB will execute requests in parallel, which 785Remember that, by default, BDB will execute requests in parallel, which
786easily leads to deadlocks (even concurrent put's on the same database can 786easily leads to deadlocks (even concurrent put's on the same database can

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines