1CONFDB_KEY_REPLACE(C3o)rosync Cluster Engine Programmer's ManCuOaNlFDB_KEY_REPLACE(3)
2
3
4

NAME

6       confdb_key_replace  -  Replace  a key/value pair from the Configuration
7       Database
8

SYNOPSIS

10       #include <corosync/confdb.h>
11
12       confdb_error_t confdb_key_replace(confdb_handle_t handle, unsigned  int
13       parent_object_handle,   void   *key_name,   int   key_name_len  ,  void
14       *old_value , int old_value_len , void *new_value , int new_value_len );
15
16

DESCRIPTION

18       The confdb_key_replace function replaces the value of a key in the con‐
19       figuration database.
20       You  must specify both the key name and its value, this is because keys
21       are not unique in the database, so a value is  not  enough  to  uniqely
22       identify  a  key  belonging  to a particular parent object.   Strictly,
23       even give the key name and value is not enough to uniquely  identify  a
24       key, If there are two (or more) keys with the same name and value, only
25       the first will have its value changed .
26

RETURN VALUE

28       This call returns the CONFDB_OK value if successful, otherwise an error
29       is returned.
30

ERRORS

32       The errors are undocumented.
33

SEE ALSO

35       confdb_overview(8),      confdb_initialize(3),      confdb_finalize(3),
36       confdb_dispatch(3), confdb_object_create(3),  confdb_object_destroy(3),
37       confdb_object_parent_get(3),                      confdb_key_create(3),
38       confdb_key_delete(3),     confdb_key_get(3),     confdb_key_replace(3),
39       confdb_object_find_start(3),                     confdb_object_find(3),
40       confdb_object_iter_start(3),                     confdb_object_iter(3),
41       confdb_key_iter_start(3), confdb_key_iter(3),
42
43corosync Man Page                 2008-04-17             CONFDB_KEY_REPLACE(3)
Impressum