Skip to content

Commit 7cbf6a5

Browse files
committed
MB-20822: Print correct value for vb_%d:num_erroneous_entries_erased
'num_erroneous_entries_erased' was incorrectly printing the total size of the failover table, and not the number of elements which have been removed. Change-Id: I7bbd75ca4db962cba257a1883ce3635b475287c7 Reviewed-on: http://review.couchbase.org/69132 Reviewed-by: Jim Walker <[email protected]> Reviewed-by: Trond Norbye <[email protected]> Tested-by: buildbot <[email protected]>
1 parent 5276087 commit 7cbf6a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/failover-table.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ void FailoverTable::addStats(const void* cookie, uint16_t vbid,
237237
add_casted_stat(statname, table.size(), add_stat, cookie);
238238
checked_snprintf(statname, sizeof(statname),
239239
"vb_%d:num_erroneous_entries_erased", vbid);
240-
add_casted_stat(statname, table.size(), add_stat, cookie);
240+
add_casted_stat(statname, getNumErroneousEntriesErased(), add_stat,
241+
cookie);
241242

242243
table_t::iterator it;
243244
int entrycounter = 0;

0 commit comments

Comments
 (0)