Subject: | Optimization fails |
Date: | Wed, 17 Oct 2007 22:13:55 -0700 (PDT) |
To: | bug-DBM-Deep [...] rt.cpan.org |
From: | Steven Samelson <stevensamelson [...] yahoo.com> |
DBM::Deep version: 1.0006
Perl version: v5.8.8 built for MSWin32-x86-multi-thread
OS version: Windows XP and Windows 2003 Server
Bug Description:
Using optimization on any database fails with an error returned:
"Cannot copy temp file over original: Permission denied"
Patch:
We fixed this by adding '$db_temp->_storage->close;' to the optimization routine inside Deep.pm, see below:
$self->lock();
$self->_engine->clear_cache;
$self->_copy_node( $db_temp );
$db_temp->_storage->close;
undef $db_temp;
Seems to work OK now, asside from another bug in optimization.
Thanks,
-Steven
Show quoted text
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com