@@ -42,7 +42,7 @@ type waiting_operations =
4242type all_operations = [blocking_operations | waiting_operations ]
4343
4444(* Unused, ensure every API operation is statically partitioned here. *)
45- let _id (op : API.pool_allowed_operations ) : all_operations = op
45+ let _id (op : API.pool_operations ) : all_operations = op
4646
4747(* psr is not included as a pool op because it can be considered in progress
4848 in between api calls (i.e. wrapping it inside with_pool_operation won't work) *)
@@ -97,7 +97,7 @@ type validity = Unknown | Allowed | Disallowed of string * string list
9797 element of all_operations to a value indicating whether it would be
9898 valid for it to be executed in the inputted execution context. *)
9999let compute_valid_operations ~__context record pool :
100- API. pool_allowed_operations -> validity =
100+ API. pool_operations -> validity =
101101 let ref = Ref. string_of pool in
102102 let current_ops = record.Db_actions. pool_current_operations in
103103 let table = (Hashtbl. create 32 : (all_operations, validity ) Hashtbl. t) in
@@ -122,7 +122,7 @@ let compute_valid_operations ~__context record pool :
122122 let additional_info =
123123 match waiting_op with
124124 | Some (op_ref , op_type ) ->
125- [API. pool_allowed_operations_to_string op_type; op_ref]
125+ [API. pool_operations_to_string op_type; op_ref]
126126 | _ ->
127127 []
128128 in
@@ -202,8 +202,7 @@ let compute_valid_operations ~__context record pool :
202202 ) ;
203203 fun op -> Hashtbl. find_opt table op |> Option. value ~default: Unknown
204204
205- let assert_operation_valid ~__context ~self ~(op : API.pool_allowed_operations )
206- =
205+ let assert_operation_valid ~__context ~self ~(op : API.pool_operations ) =
207206 (* No pool operations allowed during a pending PSR. *)
208207 if Db.Pool. get_is_psr_pending ~__context ~self: (Helpers. get_pool ~__context)
209208 then
@@ -218,7 +217,7 @@ let assert_operation_valid ~__context ~self ~(op : API.pool_allowed_operations)
218217 | Unknown ->
219218 (* This should never happen and implies our validity algorithm is incomplete. *)
220219 let detail =
221- let op = pool_allowed_operations_to_string op in
220+ let op = pool_operations_to_string op in
222221 Printf. sprintf " %s.%s unknown operation: %s" __MODULE__ __FUNCTION__ op
223222 in
224223 raise Api_errors. (Server_error (internal_error, [detail]))
@@ -269,7 +268,7 @@ let assert_no_pool_ops ~__context =
269268 let err =
270269 ops
271270 |> List. map snd
272- |> List. map Record_util. pool_allowed_operations_to_string
271+ |> List. map Record_util. pool_operations_to_string
273272 |> String. concat " ; "
274273 |> Printf. sprintf " pool operations in progress: [ %s ]"
275274 in
0 commit comments