More failing tests, particularly for keys() and transactions.
[dbsrgits/DBM-Deep.git] / lib / DBM / Deep / File.pm
index 52792c0..3fcf9d0 100644 (file)
@@ -217,6 +217,10 @@ sub request_space {
 sub lock {
     my $self = shift;
     my ($obj, $type) = @_;
+
+    #XXX This may not always be the correct thing to do
+    $obj = $self->{base_db_obj} unless defined $obj;
+
     $type = LOCK_EX unless defined $type;
 
     if (!defined($self->{fh})) { return; }