hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lil...@apache.org
Subject [2/2] incubator-hawq git commit: HAWQ-607. Fix bug: Copy large table to file, and kill QE process, copy doesn't fail.
Date Thu, 31 Mar 2016 04:18:50 GMT
HAWQ-607. Fix bug: Copy large table to file, and kill QE process, copy doesn't fail.


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

Branch: refs/heads/master
Commit: ae8aff2ea3b93abaa17a2cde3cdc9a5be3689466
Parents: 84d40fa
Author: Lili Ma <ictmalili@gmail.com>
Authored: Wed Mar 30 17:57:13 2016 +0800
Committer: Lili Ma <ictmalili@gmail.com>
Committed: Thu Mar 31 12:11:16 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbcopy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/ae8aff2e/src/backend/cdb/cdbcopy.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbcopy.c b/src/backend/cdb/cdbcopy.c
index 98f0510..6474bcc 100644
--- a/src/backend/cdb/cdbcopy.c
+++ b/src/backend/cdb/cdbcopy.c
@@ -445,6 +445,8 @@ bool cdbCopyGetData(CdbCopy *c, bool copy_cancel, uint64 *rows_processed)
 			 */
 			else
 			{
+			  c->io_errors = true;
+
 				/* should never happen since we are blocking. Don't bother to try again, exit with error.
*/
 				if (nbytes == 0)
 					appendStringInfo(&(c->err_msg),
@@ -467,8 +469,6 @@ bool cdbCopyGetData(CdbCopy *c, bool copy_cancel, uint64 *rows_processed)
 					/* start over from first seg as we just changes the seg list */
 					break;
 				}
-
-				c->io_errors = true;
 			}
 		}
 


Mime
View raw message