Skip to content

Commit

Permalink
PR comment suggestions and fixes
Browse files Browse the repository at this point in the history
Remove unnecessary delete

Revert deleting Close method call
  • Loading branch information
mharshe committed Nov 11, 2021
1 parent 92c7d8d commit 9b2d7a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[build-system]
requires = ["setuptools", "wheel", "Cython"]
requires = ["setuptools", "wheel", "cython"]
build-backend = "setuptools.build_meta"
1 change: 1 addition & 0 deletions rocksdb/_rocksdb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,7 @@ cdef class DB(object):
copts.in_use = False
del self.cf_options[:]
with nogil:
st = self.db.Close()
self.db = NULL
if self.opts is not None:
self.opts.in_use = False
Expand Down

0 comments on commit 9b2d7a9

Please sign in to comment.