diff options
author | Randolph Tan <randolph@10gen.com> | 2022-06-15 14:14:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-06-15 14:43:54 +0000 |
commit | 9e0980701ed69dae443dd101beacfed0c98f3144 (patch) | |
tree | 33812ca6360e4e585b472ac5e27e5ee750433536 /src | |
parent | 70f85102cb246154edd9875264a3b40594fb631d (diff) | |
download | mongo-9e0980701ed69dae443dd101beacfed0c98f3144.tar.gz |
SERVER-67189 Fix initilization order for ShardingDataTransformInstanceMetrics::_startTime
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/s/sharding_data_transform_instance_metrics.cpp | 2 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_data_transform_instance_metrics.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/s/sharding_data_transform_instance_metrics.cpp b/src/mongo/db/s/sharding_data_transform_instance_metrics.cpp index c5f6a831b0f..807195c689d 100644 --- a/src/mongo/db/s/sharding_data_transform_instance_metrics.cpp +++ b/src/mongo/db/s/sharding_data_transform_instance_metrics.cpp @@ -85,11 +85,11 @@ ShardingDataTransformInstanceMetrics::ShardingDataTransformInstanceMetrics( _originalCommand{std::move(originalCommand)}, _sourceNs{std::move(sourceNs)}, _role{role}, + _startTime{startTime}, _clockSource{clockSource}, _observer{std::move(observer)}, _cumulativeMetrics{cumulativeMetrics}, _deregister{_cumulativeMetrics->registerInstanceMetrics(_observer.get())}, - _startTime{startTime}, _copyingStartTime{kNoDate}, _copyingEndTime{kNoDate}, _approxDocumentsToCopy{0}, diff --git a/src/mongo/db/s/sharding_data_transform_instance_metrics.h b/src/mongo/db/s/sharding_data_transform_instance_metrics.h index 6c508bbafd8..dbf81eabffb 100644 --- a/src/mongo/db/s/sharding_data_transform_instance_metrics.h +++ b/src/mongo/db/s/sharding_data_transform_instance_metrics.h @@ -164,13 +164,13 @@ protected: "allShardsHighestRemainingOperationTimeEstimatedSecs"; private: + const Date_t _startTime; + ClockSource* _clockSource; ObserverPtr _observer; ShardingDataTransformCumulativeMetrics* _cumulativeMetrics; ShardingDataTransformCumulativeMetrics::DeregistrationFunction _deregister; - const Date_t _startTime; - AtomicWord<Date_t> _copyingStartTime; AtomicWord<Date_t> _copyingEndTime; AtomicWord<int32_t> _approxDocumentsToCopy; |