Motr  M0
m0_confc_gate_ops Struct Reference

#include <confc.h>

Collaboration diagram for m0_confc_gate_ops:
Collaboration graph

Data Fields

bool(* go_check )(struct m0_confc *confc)
 
int(* go_skip )(struct m0_confc *confc)
 
bool(* go_drain )(struct m0_clink *clink)
 

Detailed Description

Check-point operations. Intended to provide coupling with rconfc and gating any operation related to configuration read done with the confc instance.

Definition at line 456 of file confc.h.

Field Documentation

◆ go_check

bool(* go_check) (struct m0_confc *confc)

Main gating operation. Results in blocking m0_confc_ctx_init() until rconfc allows reading through the controlled confc instance, i.e. possesses read lock.

Definition at line 462 of file confc.h.

◆ go_drain

bool(* go_drain) (struct m0_clink *clink)

The operation to be called when confc have all contexts detached. This will instruct rconfc to drain confc cache.

See also
m0_confc::cc_unattached

Definition at line 481 of file confc.h.

◆ go_skip

int(* go_skip) (struct m0_confc *confc)

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

Definition at line 474 of file confc.h.


The documentation for this struct was generated from the following file: