Skip to content

Commit e8c2e68

Browse files
adamretterfacebook-github-bot
authored andcommitted
Fix RocksDB bug in block_cache_trace_analyzer.cc on Windows (facebook#5786)
Summary: This is required to compile on Windows with Visual Studio 2015. Pull Request resolved: facebook#5786 Differential Revision: D17335994 fbshipit-source-id: 8f9568310bc6f697e312b5e24ad465e9084f0011
1 parent d05c0fe commit e8c2e68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/block_cache_analyzer/block_cache_trace_analyzer.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,8 +1830,8 @@ void BlockCacheTraceAnalyzer::PrintDataBlockAccessStats() const {
18301830
hist_naccess_per_key.Add(caller_access.second);
18311831
}
18321832
}
1833-
uint64_t avg_accesses = hist_naccess_per_key.Average();
1834-
uint64_t stdev_accesses = hist_naccess_per_key.StandardDeviation();
1833+
uint64_t avg_accesses = static_cast<uint64_t>(hist_naccess_per_key.Average());
1834+
uint64_t stdev_accesses = static_cast<uint64_t>(hist_naccess_per_key.StandardDeviation());
18351835
avg_naccesses_per_key_in_a_data_block.Add(avg_accesses);
18361836
cf_avg_naccesses_per_key_in_a_data_block[cf_name].Add(avg_accesses);
18371837
stdev_naccesses_per_key_in_a_data_block.Add(stdev_accesses);

0 commit comments

Comments
 (0)