mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
"standby follow": check node system identifiers match
This commit is contained in:
21
strutil.c
21
strutil.c
@@ -191,6 +191,27 @@ key_value_list_get(KeyValueList *item_list, const char *key)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
key_value_list_free(KeyValueList *item_list)
|
||||
{
|
||||
KeyValueListCell *cell;
|
||||
KeyValueListCell *next_cell;
|
||||
|
||||
cell = item_list->head;
|
||||
|
||||
while (cell != NULL)
|
||||
{
|
||||
next_cell = cell->next;
|
||||
pfree(cell->key);
|
||||
pfree(cell->value);
|
||||
pfree(cell);
|
||||
cell = next_cell;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Escape a string for use as a parameter in recovery.conf
|
||||
* Caller must free returned value
|
||||
|
||||
Reference in New Issue
Block a user