From ef1aad97f9845335617ed0f4224c05a240687ee6 Mon Sep 17 00:00:00 2001 From: Lei Jin Date: Tue, 8 Jul 2014 15:29:13 -0700 Subject: [PATCH] fix one more internal_stats issue Summary: stall count is wrong Test Plan: make release Reviewers: sdong, yhchiang, igor Reviewed By: igor Subscribers: leveldb Differential Revision: https://reviews.facebook.net/D19539 --- db/internal_stats.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/internal_stats.h b/db/internal_stats.h index 2a743593d..376bb819c 100644 --- a/db/internal_stats.h +++ b/db/internal_stats.h @@ -118,12 +118,12 @@ class InternalStats { void RecordWriteStall(WriteStallType write_stall_type, uint64_t micros) { stall_micros_[write_stall_type] += micros; - stall_counts_[write_stall_type]++; + ++stall_counts_[write_stall_type]; } void RecordLevelNSlowdown(int level, uint64_t micros) { stall_leveln_slowdown_[level] += micros; - stall_leveln_slowdown_count_[level] += micros; + ++stall_leveln_slowdown_count_[level]; } uint64_t GetBackgroundErrorCount() const { return bg_error_count_; }