File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
ocaml/xapi-storage-script Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -1693,14 +1693,20 @@ let rec diff a b =
1693
1693
| a :: aa ->
1694
1694
if List. mem b a ~equal: String. ( = ) then diff aa b else a :: diff aa b
1695
1695
1696
+ (* default false due to bugs in SMAPIv3 plugins,
1697
+ once they are fixed this should be set to true *)
1698
+ let concurrent = ref false
1699
+
1696
1700
let watch_volume_plugins ~volume_root ~switch_path ~pipe =
1697
1701
let create volume_plugin_name =
1698
1702
if Hashtbl. mem servers volume_plugin_name then
1699
1703
return ()
1700
1704
else (
1701
1705
info " Adding %s" volume_plugin_name ;
1702
1706
let volume_script_dir = Filename. concat volume_root volume_plugin_name in
1703
- Message_switch_async.Protocol_async.Server. listen
1707
+ Message_switch_async.Protocol_async.Server. (
1708
+ if ! concurrent then listen_p else listen
1709
+ )
1704
1710
~process: (process_smapiv2_requests (bind ~volume_script_dir ))
1705
1711
~switch: switch_path
1706
1712
~queue: (Filename. basename volume_plugin_name)
@@ -1957,6 +1963,11 @@ let _ =
1957
1963
, (fun () -> string_of_bool ! self_test_only)
1958
1964
, " Do only a self-test and exit"
1959
1965
)
1966
+ ; ( " concurrent"
1967
+ , Arg. Set concurrent
1968
+ , (fun () -> string_of_bool ! concurrent)
1969
+ , " Issue SMAPIv3 calls concurrently"
1970
+ )
1960
1971
]
1961
1972
in
1962
1973
configure2 ~name: " xapi-script-storage" ~version: Xapi_version. version
You can’t perform that action at this time.
0 commit comments