Subject: | DB_File locking scheme fails on Windows |
Search::InvertedIndex tests fail on Microsoft Windows, because of
locking scheme in DB_File_SplitHash.pm in sub _open_multi_map.
my $fd = $db_object->fd;
$fd is equal to -1.
Also this scheme is not recomended by DB_File:
http://search.cpan.org/~pmqs/DB_File-1.814/DB_File.pm#Locking%3A_The_Trouble_with_fd
because of race condition.
There are two possible solutions:
1. Switch to BerkeleyDB perl module which uses BerkeleyDB 2 locking
possibilities.
2. Use additional lock file (modules are described in DB_File pod).
-------
Alexandr Ciornii, http://chorny.net