1CMAP_DELETE(3)    Corosync Cluster Engine Programmer's Manual   CMAP_DELETE(3)
2
3
4

NAME

6       cmap_delete - Delete key/value pair from the CMAP service
7
8

SYNOPSIS

10       #include <corosync/cmap.h>
11
12
13       cs_error_t cmap_delete(cmap_handle_t handle, const char *key_name);
14
15

DESCRIPTION

17       The  cmap_delete  function is used to delete key from cmap. Key must be
18       previously created by cmap_set(3) function. The handle argument is con‐
19       nection  to  CMAP database obtained by calling cmap_initialize(3) func‐
20       tion.  key_name is name of key to delete.
21
22

RETURN VALUE

24       This call returns the CS_OK value if successful. If key_name is unspec‐
25       ified,   CS_ERR_INVALID_PARAM   is   returned.  For  nonexisting  keys,
26       CS_ERR_NOT_EXIST error is returned. Some of keys may  be  tagged  read-
27       only  directly  in  corosync  and  deleting  such  key  will  result in
28       CS_ERR_ACCESS error.
29
30

SEE ALSO

32       cmap_initialize(3), cmap_set(3), cmap_overview(8)
33
34       CS_ERR_TRY_AGAIN Resource temporarily unavailable
35
36       CS_ERR_INVALID_PARAM Invalid argument
37
38       CS_ERR_ACCESS Permission denied
39
40       CS_ERR_LIBRARY The connection failed
41
42       CS_ERR_INTERRUPT System call interrupted by a signal
43
44       CS_ERR_NOT_SUPPORTED The requested protocol/functionality not supported
45
46       CS_ERR_MESSAGE_ERROR Incorrect auth message received
47
48       CS_ERR_NO_MEMORY Not enough memory to complete the requested task
49
50
51
52corosync Man Page                 03/02/2012                    CMAP_DELETE(3)
Impressum