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

Comparing BDB/BDB.pm (file contents):
Revision 1.45 by root, Wed Jul 9 21:16:14 2008 UTC vs.
Revision 1.46 by root, Thu Jul 17 12:09:56 2008 UTC

108no warnings; 108no warnings;
109use strict 'vars'; 109use strict 'vars';
110 110
111use base 'Exporter'; 111use base 'Exporter';
112 112
113our $VERSION;
114
113BEGIN { 115BEGIN {
114 our $VERSION = '1.7'; 116 $VERSION = '1.7';
115 117
116 our @BDB_REQ = qw( 118 our @BDB_REQ = qw(
117 db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect 119 db_env_open db_env_close db_env_txn_checkpoint db_env_lock_detect
118 db_env_memp_sync db_env_memp_trickle db_env_dbrename db_env_dbremove 120 db_env_memp_sync db_env_memp_trickle db_env_dbrename db_env_dbremove
119 db_open db_close db_compact db_sync db_upgrade 121 db_open db_close db_compact db_sync db_upgrade
613=back 615=back
614 616
615=cut 617=cut
616 618
617sub VERSION { 619sub VERSION {
620 # I was dumb enough to override the VERSION method here, so let's try
621 # to fix it up.
622
623 if ($_[0] eq __PACKAGE__) {
624 $VERSION
625 } else {
618 if (@_ > 0) { 626 if (@_ > 0) {
619 return undef if VERSION_v lt $_[0]; 627 return undef if VERSION_v lt $_[0];
620 if (@_ > 1) { 628 if (@_ > 1) {
621 return undef if VERSION_v ge $_[1]; 629 return undef if VERSION_v ge $_[1];
630 }
622 } 631 }
632
633 VERSION_v
623 } 634 }
624
625 VERSION_v
626} 635}
627 636
628=head3 CONTROLLING THE NUMBER OF THREADS 637=head3 CONTROLLING THE NUMBER OF THREADS
629 638
630=over 4 639=over 4

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines