From 96599966a51f7bde9b547d51da0c4d7e9f7fa4cb Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 9 Jul 2024 09:59:53 +0300 Subject: [PATCH] reactor: Mark _config const Reactor configuration, once set in constructor, doesn't change. Few exceptions exist, but they will be handled later on. Signed-off-by: Pavel Emelyanov --- include/seastar/core/reactor.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/seastar/core/reactor.hh b/include/seastar/core/reactor.hh index a16a81c604d..d3fd0c49b9a 100644 --- a/include/seastar/core/reactor.hh +++ b/include/seastar/core/reactor.hh @@ -219,7 +219,7 @@ public: private: std::shared_ptr _smp; alien::instance& _alien; - reactor_config _cfg; + const reactor_config _cfg; file_desc _notify_eventfd; file_desc _task_quota_timer; #ifdef HAVE_OSV