opal/mca/dstore/zht/dstore_zht.c
/* remove a (key, value) record in ZHT server */
remove a (key, value) record in ZHT server
remove a ( key value ) record in ZHT server
static int remove_data(struct opal_dstore_base_module_t *imod,
                       const opal_process_name_t *proc, const char *key)
{
    int rc;
    opal_output_verbose(1, opal_dstore_base_framework.framework_output,
                "%s dstore:zht:kvs remove data for proc %s",
                OPAL_NAME_PRINT(OPAL_PROC_MY_NAME), OPAL_NAME_PRINT(*proc));
    if (NULL == key) {
        opal_output_verbose(1, opal_dstore_base_framework.framework_output,
                "%s dstore:zht:kvs remove data empty key for proc %s",
                OPAL_NAME_PRINT(OPAL_PROC_MY_NAME), OPAL_NAME_PRINT(*proc));
        return OPAL_ERROR;
    }
    if (0 != (rc = c_zht_remove(key))) {
        return OPAL_ERROR;
    }
    return OPAL_SUCCESS;
}
static int remove_data ( struct opal_dstore_base_module_t * imod , const opal_process_name_t * proc , const char * key ) { int rc ; opal_output_verbose ( 1 , opal_dstore_base_framework . framework_output , " " , OPAL_NAME_PRINT ( OPAL_PROC_MY_NAME ) , OPAL_NAME_PRINT ( * proc ) ) ; if ( NULL == key ) { opal_output_verbose ( 1 , opal_dstore_base_framework . framework_output , " " , OPAL_NAME_PRINT ( OPAL_PROC_MY_NAME ) , OPAL_NAME_PRINT ( * proc ) ) ; return OPAL_ERROR ; } if ( 0 != ( rc = c_zht_remove ( key ) ) ) { return OPAL_ERROR ; } return OPAL_SUCCESS ; }
remove a (key, value) record in ZHT server
remove a ( key value ) record in ZHT server