From 30ee6eb6d3bcb341d32e374d7490b75a15f4cdb6 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 3 Sep 2020 04:24:02 +0000 Subject: [PATCH] mon/AuthMonitor: add option to skip non-mon cap parsing The monitor is not always the same version as the daemons, so it may not always treat the caps the same. This parsing is also quite cpu intensive, and is just a usability feature here - it's checked again on the relevant daemon when the entity connects. Thus, provide an option to disable this parsing. Leave it on by default for better usability. Signed-off-by: Josh Durgin --- src/common/options.cc | 8 ++++++++ src/mon/AuthMonitor.cc | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/common/options.cc b/src/common/options.cc index 919241515b9f..8fc58752b519 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -2150,6 +2150,14 @@ std::vector