[Commits] f2b801bd023: Remove the redundant iter->Seek() call in ha_rocksdb::check_and_lock_sk
revision-id: f2b801bd023f169bae5e8a8a88334e5c6f1e788d (fb-prod201907-50-gf2b801bd023) parent(s): 1b7b8f7dcec371dabc74acabaae330146e367c7c author: Sergei Petrunia committer: Sergei Petrunia timestamp: 2020-03-25 11:33:56 +0300 message: Remove the redundant iter->Seek() call in ha_rocksdb::check_and_lock_sk read_key_exact() is called next, and it will mak iter->Seek() call itself. --- storage/rocksdb/ha_rocksdb.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/storage/rocksdb/ha_rocksdb.cc b/storage/rocksdb/ha_rocksdb.cc index 14006d05150..3a58567d05b 100644 --- a/storage/rocksdb/ha_rocksdb.cc +++ b/storage/rocksdb/ha_rocksdb.cc @@ -9792,7 +9792,6 @@ int ha_rocksdb::check_and_lock_sk(const uint key_id, Also need to scan RocksDB and verify the key has not been deleted in the transaction. */ - iter->Seek(new_slice); *found = !read_key_exact(kd, iter, all_parts_used, new_slice, row_info.tx->m_snapshot_timestamp); delete iter;
participants (1)
-
psergey