diff --git a/server/modules/routing/readwritesplit/readwritesplit.cc b/server/modules/routing/readwritesplit/readwritesplit.cc index ba1292d7e..9163dc092 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.cc +++ b/server/modules/routing/readwritesplit/readwritesplit.cc @@ -690,7 +690,7 @@ SERVICE* RWSplit::service() const return m_service; } -Config& RWSplit::config() +const Config& RWSplit::config() const { return m_config; } diff --git a/server/modules/routing/readwritesplit/readwritesplit.hh b/server/modules/routing/readwritesplit/readwritesplit.hh index 3e45a2f37..4a2b2d738 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.hh +++ b/server/modules/routing/readwritesplit/readwritesplit.hh @@ -224,7 +224,7 @@ public: ~RWSplit(); SERVICE* service() const; - Config& config(); + const Config& config() const; Stats& stats(); private: