diff options
Diffstat (limited to 'src/mongo/s/chunk_manager_targeter.h')
-rw-r--r-- | src/mongo/s/chunk_manager_targeter.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mongo/s/chunk_manager_targeter.h b/src/mongo/s/chunk_manager_targeter.h index c85e9f4128d..aad04e881e9 100644 --- a/src/mongo/s/chunk_manager_targeter.h +++ b/src/mongo/s/chunk_manager_targeter.h @@ -50,7 +50,7 @@ struct TargeterStats; */ class ChunkManagerTargeter : public NSTargeter { public: - ChunkManagerTargeter(); + ChunkManagerTargeter(TargeterStats* stats); /** * Initializes the ChunkManagerTargeter with the latest targeting information for the @@ -92,11 +92,6 @@ public: */ Status refreshIfNeeded(bool* wasChanged); - /** - * Returns the stats. Note that the returned stats object is still owned by this targeter. - */ - const TargeterStats* getStats() const; - private: // Different ways we can refresh metadata // TODO: Improve these ways. @@ -152,8 +147,8 @@ private: // Stores whether we need to check the remote server on refresh bool _needsTargetingRefresh; - // Represents only the view and not really part of the targeter state. - mutable boost::scoped_ptr<TargeterStats> _stats; + // Represents only the view and not really part of the targeter state. This is not owned here. + TargeterStats* _stats; }; struct TargeterStats { |