"standby follow": check node system identifiers match

This commit is contained in:
Ian Barwick
2017-08-14 11:45:08 +09:00
parent 0f31756733
commit eabd56f3be
9 changed files with 114 additions and 37 deletions

View File

@@ -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