hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject incubator-hawq git commit: HAWQ-169. remove useless variable found by coverity
Date Thu, 14 Jan 2016 07:02:55 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master ba500a5c0 -> 2984ec6f9


HAWQ-169. remove useless variable found by coverity


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/2984ec6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/2984ec6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/2984ec6f

Branch: refs/heads/master
Commit: 2984ec6f947d25230e28b4c763d9bbe534751b3a
Parents: ba500a5
Author: Ming LI <mli@pivotal.io>
Authored: Thu Jan 14 15:02:00 2016 +0800
Committer: Ming LI <mli@pivotal.io>
Committed: Thu Jan 14 15:02:00 2016 +0800

----------------------------------------------------------------------
 src/bin/pg_dump/pg_dumpall.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/2984ec6f/src/bin/pg_dump/pg_dumpall.c
----------------------------------------------------------------------
diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c
index 7538ff2..5c3c6f7 100644
--- a/src/bin/pg_dump/pg_dumpall.c
+++ b/src/bin/pg_dump/pg_dumpall.c
@@ -990,7 +990,7 @@ dumpRoleMembership(PGconn *conn)
 }
 
 /*
- * Dump role time constraints. 
+ * Dump role time constraints.
  *
  * Note: we expect dumpRoles already created all the roles, but there are
  * no time constraints yet.
@@ -1017,7 +1017,7 @@ dumpRoleConstraints(PGconn *conn)
 		char		*end_day 	= PQgetvalue(res, i, 3);
 		char 		*end_time 	= PQgetvalue(res, i, 4);
 
-		fprintf(OPF, "ALTER ROLE %s DENY BETWEEN DAY %s TIME '%s' AND DAY %s TIME '%s';\n", 
+		fprintf(OPF, "ALTER ROLE %s DENY BETWEEN DAY %s TIME '%s' AND DAY %s TIME '%s';\n",
 				fmtId(rolname), start_day, start_time, end_day, end_time);
 	}
 
@@ -1238,7 +1238,6 @@ dumpFilespaces(PGconn *conn)
 		/* append the filespace location information to output */
 		for (j = 0; j < PQntuples(entries); j++)
 		{
-			char	   *dbid = PQgetvalue(entries, j, 0);
 			char	   *location = PQgetvalue(entries, j, 1);
 
 			if (j > 0)
@@ -1300,7 +1299,7 @@ dumpTablespaces(PGconn *conn)
 	 * --gp-syntax or --no-gp-syntax.
 	 */
 	if (server_version < 80214)
-	{							
+	{
 		/* Filespaces were introduced in GP 4.0 (server_version 8.2.14) */
 		return;
 	}


Mime
View raw message