예제 #1
0
파일: leveldb.py 프로젝트: bashwork/common
 def close(self):
     ''' Close the underlying snapshot and free all resources.
     '''
     if self.snapshot:
         LDB.leveldb_release_snapshot(self.snapshot)
         self.snapshot = None