MySQL 8.0.39
Source Code Documentation
get_synode_app_data.cc File Reference
#include <stdlib.h>
#include "xcom/checked_data.h"
#include "xcom/get_synode_app_data.h"
#include "xcom/synode_no.h"
#include "xcom/xcom_base.h"
#include "xcom/xcom_cache.h"
#include "xcom/xcom_memory.h"

Functions

static xcom_get_synode_app_data_result can_satisfy_request (synode_no_array const *const synodes)
 
static xcom_get_synode_app_data_result have_decided_synode_app_data (synode_no const *const synode)
 
static xcom_get_synode_app_data_result prepare_reply (synode_no_array const *const synodes, synode_app_data_array *const reply)
 
static xcom_get_synode_app_data_result copy_all_synode_app_data_to_reply (synode_no_array const *const synodes, synode_app_data_array *const reply)
 
static xcom_get_synode_app_data_result copy_synode_app_data_to_reply (synode_no const *const synode, synode_app_data *const reply)
 
xcom_get_synode_app_data_result xcom_get_synode_app_data (synode_no_array const *const synodes, synode_app_data_array *const reply)
 Retrieves the application payloads decided on the given synodes. More...
 

Function Documentation

◆ can_satisfy_request()

static xcom_get_synode_app_data_result can_satisfy_request ( synode_no_array const *const  synodes)
static

◆ copy_all_synode_app_data_to_reply()

static xcom_get_synode_app_data_result copy_all_synode_app_data_to_reply ( synode_no_array const *const  synodes,
synode_app_data_array *const  reply 
)
static

◆ copy_synode_app_data_to_reply()

static xcom_get_synode_app_data_result copy_synode_app_data_to_reply ( synode_no const *const  synode,
synode_app_data *const  reply 
)
static

◆ have_decided_synode_app_data()

static xcom_get_synode_app_data_result have_decided_synode_app_data ( synode_no const *const  synode)
static

◆ prepare_reply()

static xcom_get_synode_app_data_result prepare_reply ( synode_no_array const *const  synodes,
synode_app_data_array *const  reply 
)
static

◆ xcom_get_synode_app_data()

xcom_get_synode_app_data_result xcom_get_synode_app_data ( synode_no_array const *const  synodes,
synode_app_data_array *const  reply 
)

Retrieves the application payloads decided on the given synodes.

Parameters
[in]synodesThe desired synodes
[out]replyThe application payloads of the requested synodes
Return values
XCOM_GET_SYNODE_APP_DATA_OKIf successful, and reply was written to
XCOM_GET_SYNODE_APP_DATA_NOT_CACHEDIf we do not have some requested synode's application payload
XCOM_GET_SYNODE_APP_DATA_NOT_DECIDEDIf we haven't yet reached consensus on some requested synode
XCOM_GET_SYNODE_APP_DATA_NO_MEMORYIf there was an error allocating memory
XCOM_GET_SYNODE_APP_DATA_ERRORIf there was some unspecified error