Skip to content

Commit 9993d01

Browse files
daverigbyTim Bradgate
authored andcommitted
MB-29858: Include 'streamRegistered' in ActiveStream stats
Change-Id: Ieeeb9933c0d689fbf8dac7512333ccbc15031cd1 Reviewed-on: http://review.couchbase.org/95364 Well-Formed: Build Bot <[email protected]> Tested-by: Build Bot <[email protected]> Reviewed-by: Tim Bradgate <[email protected]>
1 parent 0bcca93 commit 9993d01

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

engines/ep/src/dcp/stream.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,13 @@ void ActiveStream::addStats(ADD_STAT add_stat, const void *c) {
830830
name_.c_str(), vb_);
831831
add_casted_stat(buffer, bufferedBackfill.items, add_stat, c);
832832

833+
checked_snprintf(buffer,
834+
bsize,
835+
"%s:stream_%d_cursor_registered",
836+
name_.c_str(),
837+
vb_);
838+
add_casted_stat(buffer, cursorRegistered, add_stat, c);
839+
833840
if (isTakeoverSend() && takeoverStart != 0) {
834841
checked_snprintf(buffer, bsize, "%s:stream_%d_takeover_since",
835842
name_.c_str(), vb_);

0 commit comments

Comments
 (0)