From 8c031e2b055e8d32ff46cae4376bbecdddc6e8dd Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 14 Jul 2022 09:14:56 +0900 Subject: [PATCH] Replace some appendPQExpBuffer occurrences with appendPQExpBufferStr --- repmgr-client.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/repmgr-client.c b/repmgr-client.c index 395d1590..af1cedb4 100644 --- a/repmgr-client.c +++ b/repmgr-client.c @@ -3629,8 +3629,8 @@ can_use_pg_rewind(PGconn *conn, const char *data_directory, PQExpBufferData *rea /* "full_page_writes" must be on in any case */ if (guc_set(conn, "full_page_writes", "=", "off")) { - appendPQExpBuffer(reason, - _("\"full_page_writes\" must be set to \"on\"")); + appendPQExpBufferStr(reason, + _("\"full_page_writes\" must be set to \"on\"")); can_use = false; } @@ -3648,18 +3648,18 @@ can_use_pg_rewind(PGconn *conn, const char *data_directory, PQExpBufferData *rea if (data_checksum_version == UNKNOWN_DATA_CHECKSUM_VERSION) { if (can_use == false) - appendPQExpBuffer(reason, "; "); + appendPQExpBufferStr(reason, "; "); - appendPQExpBuffer(reason, - _("\"wal_log_hints\" is set to \"off\" but unable to determine data checksum version")); + appendPQExpBufferStr(reason, + _("\"wal_log_hints\" is set to \"off\" but unable to determine data checksum version")); can_use = false; } else if (data_checksum_version == 0) { if (can_use == false) - appendPQExpBuffer(reason, "; "); + appendPQExpBufferStr(reason, "; "); - appendPQExpBuffer(reason, + appendPQExpBufferStr(reason, _("\"wal_log_hints\" is set to \"off\" and data checksums are disabled")); can_use = false;