We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f64c8 commit 4245225Copy full SHA for 4245225
ocaml/xapi/server_helpers.ml
@@ -150,7 +150,17 @@ let do_dispatch ?session_id ?forward_op ?self:_ supports_async called_fn_name
150
in
151
Tgroup.Group.Identity.make ?user_agent:http_req.user_agent subject
152
)
153
- session_id
+ ( if
154
+ !Xapi_globs.tgroups_enabled
155
+ && not !Xapi_globs.slave_emergency_mode
156
+ then
157
+ session_id
158
+ else
159
+ (* in emergency mode we cannot reach the coordinator,
160
+ and we must not attempt to make Db calls
161
+ *)
162
+ None
163
+ )
164
with _ -> None
165
166
Tgroup.of_creator (Tgroup.Group.Creator.make ?identity ()) ;
0 commit comments