Update _rocksdb.pyx

This commit is contained in:
iFA 2020-08-07 08:25:16 +02:00 committed by GitHub
parent 7750e765b8
commit 4bc9039ccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1856,6 +1856,9 @@ cdef class DB(object):
check_status(st) check_status(st)
def multi_get(self, keys, *args, **kwargs): def multi_get(self, keys, *args, **kwargs):
# Remove duplicate keys
keys = list(dict.fromkeys(keys))
cdef vector[string] values cdef vector[string] values
values.resize(len(keys)) values.resize(len(keys))