ResetFlowFuncState
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
In the fault recovery scenario, quickly resets FlowFunc to the initial state.
Prototype
1 | int32_t ResetFlowFuncState(const std::shared_ptr<MetaParams> ¶ms) |
Command-Line Options
Parameter |
Input/Output |
Description |
|---|---|---|
params |
Input |
Multi-func reset status parameter information. |
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Troubleshooting
None
Constraints
This API is a virtual function. When FlowFunc of the user does not implement the ResetFlowFuncState function, the framework returns FLOW_FUNC_ERR_NOT_SUPPORT by default (the current FlowFunc does not support this operation). Delete the created FlowFunc, create another FlowFunc, and then call the Init API for initialization.
Parent topic: ResetFlowFuncState