rocksdb/utilities/persistent_cache
Prashant D b45fbc1175 utilities: Fix coverity issues
Summary:
```
utilities/persistent_cache/block_cache_tier_file.cc
64struct CacheRecordHeader {
   	2. uninit_member: Non-static class member magic_ is not initialized in this constructor nor in any functions that it calls.
   	4. uninit_member: Non-static class member crc_ is not initialized in this constructor nor in any functions that it calls.
   	6. uninit_member: Non-static class member key_size_ is not initialized in this constructor nor in any functions that it calls.

CID 1396161 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
8. uninit_member: Non-static class member val_size_ is not initialized in this constructor nor in any functions that it calls.
 65  CacheRecordHeader() {}
 66  CacheRecordHeader(const uint32_t magic, const uint32_t key_size,
 67                    const uint32_t val_size)
 68      : magic_(magic), crc_(0), key_size_(key_size), val_size_(val_size) {}
 69
   	1. member_decl: Class member declaration for magic_.
 70  uint32_t magic_;
   	3. member_decl: Class member declaration for crc_.
 71  uint32_t crc_;
   	5. member_decl: Class member declaration for key_size_.
 72  uint32_t key_size_;
   	7. member_decl: Class member declaration for val_size_.
 73  uint32_t val_size_;
 74};

utilities/simulator_cache/sim_cache.cc:
157        miss_times_(0),

CID 1396124 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
2. uninit_member: Non-static class member stats_ is not initialized in this constructor nor in any functions that it calls.
158        hit_times_(0) {}
159
```
Closes https://github.com/facebook/rocksdb/pull/3155

Differential Revision: D6427237

Pulled By: sagar0

fbshipit-source-id: 97e493da5fc043c5b9a3e0d33103442cffb75aad
2017-11-28 13:27:08 -08:00
..
block_cache_tier_file_buffer.h Change RocksDB License 2017-07-15 16:11:23 -07:00
block_cache_tier_file.cc utilities: Fix coverity issues 2017-11-28 13:27:08 -08:00
block_cache_tier_file.h Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
block_cache_tier_metadata.cc Fix unused var warnings in Release mode 2017-10-23 14:27:04 -07:00
block_cache_tier_metadata.h Change RocksDB License 2017-07-15 16:11:23 -07:00
block_cache_tier.cc block_cache_tier: fix gcc-7 warnings 2017-08-10 11:58:53 -07:00
block_cache_tier.h Change RocksDB License 2017-07-15 16:11:23 -07:00
hash_table_bench.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
hash_table_evictable.h Enable MSVC W4 with a few exceptions. Fix warnings and bugs 2017-10-19 10:57:12 -07:00
hash_table_test.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
hash_table.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lrulist.h Change RocksDB License 2017-07-15 16:11:23 -07:00
persistent_cache_bench.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
persistent_cache_test.cc CodeMod: Prefer ADD_FAILURE() over EXPECT_TRUE(false), et cetera 2017-07-16 21:26:02 -07:00
persistent_cache_test.h Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
persistent_cache_tier.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
persistent_cache_tier.h Change RocksDB License 2017-07-15 16:11:23 -07:00
persistent_cache_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00
volatile_tier_impl.cc Revert "comment out unused parameters" 2017-07-21 18:26:26 -07:00
volatile_tier_impl.h Change RocksDB License 2017-07-15 16:11:23 -07:00