Skip to content

Commit 898bbb9

Browse files
committed
CA-NNNNN: avoid calling DB functions when in emergency mode
This breaks emergency mode commands. Signed-off-by: Edwin Török <[email protected]>
1 parent 71f64c8 commit 898bbb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml/xapi/server_helpers.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ let do_dispatch ?session_id ?forward_op ?self:_ supports_async called_fn_name
150150
in
151151
Tgroup.Group.Identity.make ?user_agent:http_req.user_agent subject
152152
)
153-
session_id
153+
(if !Xapi_globs.tgroups_enabled && not !Xapi_globs.slave_emergency_mode then session_id else None)
154154
with _ -> None
155155
in
156156
Tgroup.of_creator (Tgroup.Group.Creator.make ?identity ()) ;

0 commit comments

Comments
 (0)