[RocksDB] compare data and not the address on iterator operator== (#2940)
This commit is contained in:
parent
7f7981c8e6
commit
8d0011b96c
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ public:
|
|||
|
||||
auto result (std::memcmp (current.first.data (), other_a->current.first.data (), current.first.size ()) == 0);
|
||||
debug_assert (!result || (current.first.size () == other_a->current.first.size ()));
|
||||
debug_assert (!result || (current.second.data () == other_a->current.second.data ()));
|
||||
debug_assert (!result || std::memcmp (current.second.data (), other_a->current.second.data (), current.second.size ()) == 0);
|
||||
debug_assert (!result || (current.second.size () == other_a->current.second.size ()));
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue