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

Comparing BDB/BDB.pm (file contents):
Revision 1.39 by root, Tue Jul 8 08:25:31 2008 UTC vs.
Revision 1.40 by root, Tue Jul 8 08:35:12 2008 UTC

546 546
547BerkeleyDB comes in various versions, many of them have minor 547BerkeleyDB comes in various versions, many of them have minor
548incompatibilities. This means that traditional "at least version x.x" 548incompatibilities. This means that traditional "at least version x.x"
549checks are often not sufficient. 549checks are often not sufficient.
550 550
551Example: set the log_autoremove option in a way compatible with <v.47 and
552v4.7. Note the use of & on the constants to avoid triggering a compiletime
553bug when the symbol isn't available.
554
555 $DB_ENV->set_flags (&BDB::LOG_AUTOREMOVE ) if BDB::VERSION v0, v4.7;
556 $DB_ENV->log_set_config (&BDB::LOG_AUTO_REMOVE) if BDB::VERSION v4.7;
557
551=over 4 558=over 4
552 559
553=item BDB::VERSION 560=item BDB::VERSION
554 561
555The C<BDB::VERSION> function, when called without arguments, returns the 562The C<BDB::VERSION> function, when called without arguments, returns the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines