fix valgrind init complaint

Summary: Closes https://github.com/facebook/rocksdb/pull/2549

Differential Revision: D5386307

Pulled By: maysamyabandeh

fbshipit-source-id: 3032c95c54755053b6450765ec4dacbecb734f9d
This commit is contained in:
Maysam Yabandeh 2017-07-07 18:18:45 -07:00 committed by Facebook Github Bot
parent 657df29eaf
commit b5fb85ec51

View File

@ -30,7 +30,8 @@ RandomTransactionInserter::RandomTransactionInserter(
write_options_(write_options), write_options_(write_options),
read_options_(read_options), read_options_(read_options),
num_keys_(num_keys), num_keys_(num_keys),
num_sets_(num_sets) {} num_sets_(num_sets),
txn_id_(0) {}
RandomTransactionInserter::~RandomTransactionInserter() { RandomTransactionInserter::~RandomTransactionInserter() {
if (txn_ != nullptr) { if (txn_ != nullptr) {