Fix use of uninitialized memory (#7231)
We branch on the value of cf, so we need to initialize it.
This commit is contained in:
parent
8b0f53caf1
commit
665e903999
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue