mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 16:46:28 +00:00
repmgr: add correct return codes for get_tablespace_data()
Remove unused variable retval.
This commit is contained in:
6
repmgr.c
6
repmgr.c
@@ -1555,7 +1555,7 @@ tablespace_data_append(TablespaceDataList *list, const char *name, const char *o
|
|||||||
int
|
int
|
||||||
get_tablespace_data(PGconn *upstream_conn, TablespaceDataList *list)
|
get_tablespace_data(PGconn *upstream_conn, TablespaceDataList *list)
|
||||||
{
|
{
|
||||||
int i, retval;
|
int i;
|
||||||
char sqlquery[QUERY_STR_LEN];
|
char sqlquery[QUERY_STR_LEN];
|
||||||
PGresult *res;
|
PGresult *res;
|
||||||
|
|
||||||
@@ -1573,7 +1573,7 @@ get_tablespace_data(PGconn *upstream_conn, TablespaceDataList *list)
|
|||||||
|
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
|
|
||||||
return retval;
|
return ERR_DB_QUERY;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < PQntuples(res); i++)
|
for (i = 0; i < PQntuples(res); i++)
|
||||||
@@ -1581,7 +1581,7 @@ get_tablespace_data(PGconn *upstream_conn, TablespaceDataList *list)
|
|||||||
PQgetvalue(res, i, 2));
|
PQgetvalue(res, i, 2));
|
||||||
|
|
||||||
PQclear(res);
|
PQclear(res);
|
||||||
return retval;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
char *
|
||||||
|
|||||||
Reference in New Issue
Block a user