Skip to content

Commit 179b02d

Browse files
jpollack-aerospikekportertx
authored andcommitted
AER-6840 - Adds stat to track the number of monitor records present.
1 parent 2174e6c commit 179b02d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

as/include/base/mrt_monitor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ void as_mrt_monitor_proxyer_roll_done(msg* m, msg* fab_msg, monitor_roll_origin*
8787
void as_mrt_monitor_proxyer_roll_timeout(msg* fab_msg, monitor_roll_origin* roll_orig);
8888

8989
uint32_t as_mrt_monitor_n_active(const struct as_namespace_s* ns);
90+
uint64_t as_mrt_monitor_n_present(const struct as_namespace_s* ns);

as/src/base/mrt_monitor_ce.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,9 @@ as_mrt_monitor_n_active(const as_namespace* ns)
115115
{
116116
return 0;
117117
}
118+
119+
uint64_t
120+
as_mrt_monitor_n_present(const as_namespace* ns)
121+
{
122+
return 0;
123+
}

as/src/base/thr_info.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3998,6 +3998,7 @@ info_get_namespace_info(as_namespace* ns, cf_dyn_buf* db)
39983998

39993999
// MRT monitor activity.
40004000

4001+
info_append_uint64(db, "mrt_monitors", as_mrt_monitor_n_present(ns));
40014002
info_append_uint32(db, "mrt_monitors_active", as_mrt_monitor_n_active(ns));
40024003

40034004
// Persistent memory block keys' namespace ID (enterprise only).

0 commit comments

Comments
 (0)