Commit 8d5ef124 authored by Jim Fulton's avatar Jim Fulton

Added logic to close method to close the lock file and temporary file too.

parent 88fc68e8
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
# may have a back pointer to a version record or to a non-version # may have a back pointer to a version record or to a non-version
# record. # record.
# #
__version__='$Revision: 1.29 $'[11:-2] __version__='$Revision: 1.30 $'[11:-2]
import struct, time, os, bpthread, string, base64, sys import struct, time, os, bpthread, string, base64, sys
from struct import pack, unpack from struct import pack, unpack
...@@ -428,6 +428,8 @@ class FileStorage(BaseStorage.BaseStorage): ...@@ -428,6 +428,8 @@ class FileStorage(BaseStorage.BaseStorage):
def close(self): def close(self):
self._file.close() self._file.close()
self._lock_file.close()
self._tfile.close()
self._save_index() self._save_index()
def commitVersion(self, src, dest, transaction, abort=None): def commitVersion(self, src, dest, transaction, abort=None):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment