Fix build break in TransactionBaseImpl::TrackKey (#5771)

Summary:
Fix build broken in https://github.com/facebook/rocksdb/pull/5696.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5771

Differential Revision: D17217665

Pulled By: lth

fbshipit-source-id: 7aa84a2a9b4feb7a3ab1cab174e09276430fe042
This commit is contained in:
Manuel Ung 2019-09-06 10:16:21 -07:00 committed by Facebook Github Bot
parent 533e47709c
commit 2208cc0196

View File

@ -646,7 +646,7 @@ void TransactionBaseImpl::TrackKey(TransactionKeyMap* key_map, uint32_t cfh_id,
#else #else
auto iter = cf_key_map.find(key); auto iter = cf_key_map.find(key);
if (iter == cf_key_map.end()) { if (iter == cf_key_map.end()) {
auto result = cf_key_map.emplace(key, seq); auto result = cf_key_map.emplace(key, TransactionKeyMapInfo(seq));
iter = result.first; iter = result.first;
} else if (seq < iter->second.seq) { } else if (seq < iter->second.seq) {
// Now tracking this key with an earlier sequence number // Now tracking this key with an earlier sequence number