diff options
author | Daniel Morilha <daniel.morilha@mongodb.com> | 2022-06-30 13:16:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-30 14:11:31 +0000 |
commit | fae8410364c1f02ee62e77076ef60b8ee418368f (patch) | |
tree | 9909ee46de6ef7822236a468bfff95a6e61385dd /src/mongo/db/repl/initial_syncer_common_stats.h | |
parent | 50a8545e444e8bfc7e3892a1319515302b568739 (diff) | |
download | mongo-fae8410364c1f02ee62e77076ef60b8ee418368f.tar.gz |
SERVER-65987 ServerStatusMetric API refresh
Diffstat (limited to 'src/mongo/db/repl/initial_syncer_common_stats.h')
-rw-r--r-- | src/mongo/db/repl/initial_syncer_common_stats.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/repl/initial_syncer_common_stats.h b/src/mongo/db/repl/initial_syncer_common_stats.h index beb8a829bc5..4a0fd858f50 100644 --- a/src/mongo/db/repl/initial_syncer_common_stats.h +++ b/src/mongo/db/repl/initial_syncer_common_stats.h @@ -29,6 +29,7 @@ #pragma once +#include "mongo/db/commands/server_status_metric.h" #include "mongo/db/repl/optime.h" namespace mongo { @@ -38,17 +39,17 @@ namespace initial_sync_common_stats { // The number of initial sync attempts that have failed since server startup. Each instance of // InitialSyncer may run multiple attempts to fulfill an initial sync request that is triggered // when InitialSyncer::startup() is called. -extern Counter64 initialSyncFailedAttempts; +extern CounterMetric initialSyncFailedAttempts; // The number of initial sync requests that have been requested and failed. Each instance of // InitialSyncer (upon successful startup()) corresponds to a single initial sync request. // This value does not include the number of times where a InitialSyncer is created successfully // but failed in startup(). -extern Counter64 initialSyncFailures; +extern CounterMetric initialSyncFailures; // The number of initial sync requests that have been requested and completed successfully. Each // instance of InitialSyncer corresponds to a single initial sync request. -extern Counter64 initialSyncCompletes; +extern CounterMetric initialSyncCompletes; void LogInitialSyncAttemptStats(const StatusWith<OpTimeAndWallTime>& attemptResult, bool hasRetries, |