Initial refactoring to use ::File for all physical file access instead of allowing...
rkinyon [Wed, 19 Apr 2006 18:09:52 +0000 (18:09 +0000)]
lib/DBM/Deep.pm

index 55e4d64..2e59769 100644 (file)
@@ -626,13 +626,13 @@ sub CLEAR {
     ##
     $self->lock( LOCK_EX );
 
-    my $fh = $self->_fh;
-
-    seek($fh, $self->_base_offset + $self->_fileobj->{file_offset}, SEEK_SET);
-    if (eof $fh) {
-        $self->unlock();
-        return;
-    }
+    #my $fh = $self->_fh;
+    #
+    #seek($fh, $self->_base_offset + $self->_fileobj->{file_offset}, SEEK_SET);
+    #if (eof $fh) {
+    #    $self->unlock();
+    #    return;
+    #}
 
 #XXX This needs updating to use _release_space
     $self->{engine}->write_tag(