if(defined($db{$atr}) and -f $db{$atr}){
tie %{$chardb{$atr}}, "BerkeleyDB::Hash",
-Filename => $db{$atr},
- -Flags => DB_RDONLY;
+ -Flags => DB_RDONLY | DB_THREAD | DB_TXN_NOSYNC;
}else{
return undef;
}
if(defined($reverse_db{$atr}) and -f $reverse_db{$atr}){
tie %{$reverse_chardb{$atr}}, "BerkeleyDB::Hash",
-Filename => $reverse_db{$atr},
- -Flags => DB_RDONLY;
+ -Flags => DB_RDONLY | DB_THREAD | DB_TXN_NOSYNC;
}else{
return undef;
}