diff options
author | Randolph Tan <randolph@10gen.com> | 2022-07-26 19:09:15 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-26 20:52:01 +0000 |
commit | 921bba175902f9b9f29751a466383c3d7e80df7b (patch) | |
tree | f2dfc91f586d6c25cb07929e587bed0524d98b7e /src/mongo/db/s/global_index_metrics.h | |
parent | 1c83b9d52110b57bf0f592ce80bf985552df96f5 (diff) | |
download | mongo-921bba175902f9b9f29751a466383c3d7e80df7b.tar.gz |
SERVER-68154 Race in destruction of Resharding metrics can lead to calling pure virtual function
Diffstat (limited to 'src/mongo/db/s/global_index_metrics.h')
-rw-r--r-- | src/mongo/db/s/global_index_metrics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/s/global_index_metrics.h b/src/mongo/db/s/global_index_metrics.h index 9dafa72cdb8..014c7b6b06b 100644 --- a/src/mongo/db/s/global_index_metrics.h +++ b/src/mongo/db/s/global_index_metrics.h @@ -47,6 +47,7 @@ public: Date_t startTime, ClockSource* clockSource, ShardingDataTransformCumulativeMetrics* cumulativeMetrics); + ~GlobalIndexMetrics(); static std::unique_ptr<GlobalIndexMetrics> makeInstance(UUID uuid, NamespaceString nss, @@ -59,6 +60,8 @@ public: private: std::string createOperationDescription() const noexcept override; + + ShardingDataTransformInstanceMetrics::UniqueScopedObserver _scopedObserver; }; } // namespace mongo |