From: imiyazaki Date: Mon, 26 Jan 2004 13:59:58 +0000 (+0000) Subject: correct wrong option flag of BerkeleyDB. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e341f415e0e53c6f498a8a64da54fe129b9445e4;p=chise%2Fperl.git correct wrong option flag of BerkeleyDB. --- diff --git a/Chise_utils/Chise_utils.pm b/Chise_utils/Chise_utils.pm index 2afecc7..b03cf0b 100644 --- a/Chise_utils/Chise_utils.pm +++ b/Chise_utils/Chise_utils.pm @@ -144,7 +144,7 @@ sub get_db{ if(defined($db{$atr}) and -f $db{$atr}){ tie %{$chardb{$atr}}, "BerkeleyDB::Hash", -Filename => $db{$atr}, - -Flags => DB_RDONLY | DB_THREAD | DB_TXN_NOSYNC; + -Flags => DB_RDONLY; }else{ return undef; } @@ -156,7 +156,7 @@ sub get_reverse_db{ if(defined($reverse_db{$atr}) and -f $reverse_db{$atr}){ tie %{$reverse_chardb{$atr}}, "BerkeleyDB::Hash", -Filename => $reverse_db{$atr}, - -Flags => DB_RDONLY | DB_THREAD | DB_TXN_NOSYNC; + -Flags => DB_RDONLY; }else{ return undef; }