CHECK_OBJ_NOTNULL(vc->backend, BACKEND_MAGIC);
b = vc->backend;
AN(b->method);
- AN(b->method->updatehealth);
- b->method->updatehealth(sp, vc, a);
+ if(b->method->updatehealth != NULL)
+ b->method->updatehealth(sp, vc, a);
CHECK_OBJ_NOTNULL(b, BACKEND_MAGIC);
}
/*--------------------------------------------------------------------*/
-static void
-bes_UpdateHealth(struct sess *sp, struct vbe_conn *vc, int a)
-{
- (void)sp;
- (void)vc;
- (void)a;
-
- /*
- * Not of any use for simple backend. The global health
- * parameter of the backend should be enough.
- */
-}
-
-/*--------------------------------------------------------------------*/
-
static void
bes_Init(void)
{
.close = bes_ClosedFd,
.recycle = bes_RecycleFd,
.gethostname = bes_GetHostname,
- .updatehealth = bes_UpdateHealth,
.cleanup = bes_Cleanup,
.init = bes_Init
};