Properly destruct rebuilding_trx_

Summary:
When testing rebuilding_trx_ in MemTableInserter might still be set before the tests finishes which would cause ASAN alarms for leaks. This patch deletes the pointers in MemTableInserter destructor.
Closes https://github.com/facebook/rocksdb/pull/3162

Differential Revision: D6317113

Pulled By: maysamyabandeh

fbshipit-source-id: a68be70709a4fff7ac2b768660119311968f9c21
This commit is contained in:
Maysam Yabandeh 2017-11-14 08:42:14 -08:00 committed by Facebook Github Bot
parent 9871ea4357
commit 175d5d6a9e
1 changed files with 1 additions and 0 deletions

View File

@ -980,6 +980,7 @@ class MemTableInserter : public WriteBatch::Handler {
reinterpret_cast<MemPostInfoMap*>
(&mem_post_info_map_)->~MemPostInfoMap();
}
delete rebuilding_trx_;
}
MemTableInserter(const MemTableInserter&) = delete;