File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ cdef class IndexEngine:
8989 self .monotonic_check = 0
9090
9191 self .unique = 0
92+ self .unique_check = 0
9293 self .monotonic_inc = 0
9394 self .monotonic_dec = 0
9495
@@ -232,14 +233,10 @@ cdef class IndexEngine:
232233 values = self ._get_index_values()
233234 self .monotonic_inc, self .monotonic_dec, unique = \
234235 self ._call_monotonic(values)
235-
236- if unique is not None :
237- self .unique = unique
238- self .unique_check = 1
239-
240236 except TypeError :
241237 self .monotonic_inc = 0
242238 self .monotonic_dec = 0
239+
243240 self .monotonic_check = 1
244241
245242 cdef _get_index_values(self ):
@@ -269,8 +266,7 @@ cdef class IndexEngine:
269266
270267 if len (self .mapping) == len (values):
271268 self .unique = 1
272- self .unique_check = 1
273-
269+ self .unique_check = 1
274270 self .initialized = 1
275271
276272 def clear_mapping (self ):
You can’t perform that action at this time.
0 commit comments