Fix use of uninitialized memory (#7231)

We branch on the value of cf, so we need to initialize it.
This commit is contained in:
Andrew Noyes 2022-05-24 14:58:08 -07:00 committed by GitHub
parent 8b0f53caf1
commit 665e903999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ struct PhysicalShard {
rocksdb::DB* db;
std::string id;
rocksdb::ColumnFamilyHandle* cf;
rocksdb::ColumnFamilyHandle* cf = nullptr;
std::unordered_map<std::string, std::unique_ptr<DataShard>> dataShards;
std::shared_ptr<ReadIteratorPool> readIterPool;
bool deletePending = false;