Skip to content

Commit 9b2d7a9

Browse files
committed
PR comment suggestions and fixes
Remove unnecessary delete Revert deleting Close method call
1 parent 92c7d8d commit 9b2d7a9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "Cython"]
2+
requires = ["setuptools", "wheel", "cython"]
33
build-backend = "setuptools.build_meta"

rocksdb/_rocksdb.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,6 +1738,7 @@ cdef class DB(object):
17381738
copts.in_use = False
17391739
del self.cf_options[:]
17401740
with nogil:
1741+
st = self.db.Close()
17411742
self.db = NULL
17421743
if self.opts is not None:
17431744
self.opts.in_use = False

0 commit comments

Comments
 (0)