Skip to content

Commit 5b60d41

Browse files
authored
Sync master to feature branch (#6984)
2 parents 794844f + beede2a commit 5b60d41

137 files changed

Lines changed: 5413 additions & 426 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dune-project

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@
235235
fmt
236236
logs
237237
mtime
238-
xapi-backtrace
238+
rpclib
239239
(xapi-stdext-pervasives (= :version))))
240240

241241
(package
@@ -322,7 +322,6 @@
322322
uuidm
323323
uutf
324324
x509
325-
xapi-backtrace
326325
xapi-log
327326
xapi-types
328327
xapi-stdext-pervasives
@@ -451,7 +450,6 @@
451450
uutf
452451
uuidm
453452
x509
454-
xapi-backtrace
455453
(xapi-client
456454
(= :version))
457455
(xapi-cli-protocol
@@ -764,7 +762,6 @@
764762
uri
765763
(uuid
766764
(= :version))
767-
xapi-backtrace
768765
(xapi-idl
769766
(= :version))
770767
(xapi-log
@@ -795,7 +792,6 @@
795792
rpclib
796793
(uuid
797794
(= :version))
798-
xapi-backtrace
799795
(xapi-log
800796
(= :version))
801797
(xapi-stdext-pervasives
@@ -842,7 +838,7 @@
842838
(>= 4.08))
843839
logs
844840
(odoc :with-doc)
845-
xapi-backtrace))
841+
))
846842

847843
(package
848844
(name xapi-stdext-std)
@@ -902,7 +898,6 @@
902898
(>= 0.21.2)
903899
:with-test))
904900
(odoc :with-doc)
905-
xapi-backtrace
906901
unix-errno
907902
(xapi-stdext-pervasives
908903
(= :version))

ocaml/database/dune

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
httpsvr
5454
unix
5555
uuid
56-
xapi-backtrace
5756
xapi-datamodel
5857
xapi-log
5958
(re_export xapi-schema)

ocaml/database/parse_db_conf.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,9 @@ let parse_db_conf s =
173173
sanity_check !connections ;
174174
!connections
175175
with exn ->
176+
let bt = Printexc.get_raw_backtrace () in
176177
error "Database config parse failed: %s" (Printexc.to_string exn) ;
177-
Backtrace.reraise exn Cannot_parse_database_config_file
178+
Printexc.raise_with_backtrace Cannot_parse_database_config_file bt
178179

179180
let get_db_conf path =
180181
if Sys.file_exists path then

ocaml/forkexecd/lib/dune

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
rpclib.xml
1313
unix
1414
uuid
15-
xapi-backtrace
1615
xapi-log
1716
xapi-stdext-pervasives
1817
xapi-stdext-unix

ocaml/forkexecd/lib/fe_systemctl.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ let start_transient ?env ?properties ?(exec_ty = Type.Simple) ~service cmd args
158158
) ;
159159
try start_transient ?env ?properties ~exec_ty ~service cmd args
160160
with e ->
161-
Backtrace.is_important e ;
161+
let bt = Printexc.get_raw_backtrace () in
162162
(* If start failed we do not know what state the service is in:
163163
* try to stop it and clean up.
164164
* Stopping could fail as well, in which case report the original exception.
@@ -168,4 +168,4 @@ let start_transient ?env ?properties ?(exec_ty = Type.Simple) ~service cmd args
168168
()
169169
with _ -> ()
170170
) ;
171-
raise e
171+
Printexc.raise_with_backtrace e bt

ocaml/gencert/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
rresult
1919
unix
2020
x509
21-
xapi-backtrace
21+
xapi-log.backtrace
2222
xapi-consts
2323
xapi-log
2424
xapi-inventory

ocaml/idl/datamodel_common.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ open Datamodel_roles
1010
to leave a gap for potential hotfixes needing to increment the schema version.*)
1111
let schema_major_vsn = 5
1212

13-
let schema_minor_vsn = 900
13+
let schema_minor_vsn = 901
1414

1515
(* Historical schema versions just in case this is useful later *)
1616
let rio_schema_major_vsn = 5

ocaml/idl/datamodel_pool.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,9 +2236,8 @@ let t =
22362236
; field ~qualifier:StaticRO ~ty:Int ~default_value:(Some (VInt 1L))
22372237
~lifecycle:[] "ext_auth_max_threads"
22382238
"Maximum number of threads to use for external (AD) authentication"
2239-
; field ~qualifier:DynamicRO ~ty:Bool
2240-
~default_value:(Some (VBool false)) ~lifecycle:[]
2241-
"ext_auth_cache_enabled"
2239+
; field ~qualifier:DynamicRO ~ty:Bool ~default_value:(Some (VBool true))
2240+
~lifecycle:[] "ext_auth_cache_enabled"
22422241
"Specifies whether external authentication caching is enabled for \
22432242
this pool or not"
22442243
; field ~qualifier:DynamicRO ~ty:Int ~default_value:(Some (VInt 50L))

ocaml/idl/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
sexplib0
1414
sexpr
1515
threads
16-
xapi-backtrace
16+
xapi-log.backtrace
1717
xapi-consts
1818
xapi-schema
1919
clock

ocaml/idl/ocaml_backend/gen_client.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,12 @@ let gen_module api : O.Module.t =
319319
; " | Rpc.Enum ((Rpc.String code) :: args) -> return (server_failure \
320320
code (List.map Rpc.string_of_rpc args))"
321321
; " | rpc -> failwith (\"Client.rpc: \" ^ Rpc.to_string rpc)"
322+
; "type client = {rpc: Rpc.call -> Rpc.response; session_id: ref_session}"
323+
; "type 'a api = rpc:(Rpc.call -> Rpc.response) -> session_id:ref_session \
324+
-> 'a"
325+
; ""
326+
; "let call {rpc; session_id} f = f ~rpc ~session_id"
327+
; ""
322328
]
323329
in
324330
let postamble =

0 commit comments

Comments
 (0)