Motr
M0
|
#include <confc.h>
Data Fields | |
bool(* | go_check )(struct m0_confc *confc) |
int(* | go_skip )(struct m0_confc *confc) |
bool(* | go_drain )(struct m0_clink *clink) |
Check-point operations. Intended to provide coupling with rconfc and gating any operation related to configuration read done with the confc instance.
Main gating operation. Results in blocking m0_confc_ctx_init() until rconfc allows reading through the controlled confc instance, i.e. possesses read lock.
The operation to be called when confc have all contexts detached. This will instruct rconfc to drain confc cache.
The operation to be called when communication with current confd found failed and the confd is to be skipped. The expected result is rconfc to reconnect the confc to another confd of the same configuration version, otherwise to report no more alive confd remained.
0 - successfully skipped -ENOENT - no more confd alive -Exxxxx - some other error