Update _rocksdb.pyx
This commit is contained in:
parent
7750e765b8
commit
4bc9039ccc
1 changed files with 3 additions and 0 deletions
|
@ -1856,6 +1856,9 @@ cdef class DB(object):
|
|||
check_status(st)
|
||||
|
||||
def multi_get(self, keys, *args, **kwargs):
|
||||
# Remove duplicate keys
|
||||
keys = list(dict.fromkeys(keys))
|
||||
|
||||
cdef vector[string] values
|
||||
values.resize(len(keys))
|
||||
|
||||
|
|
Loading…
Reference in a new issue