hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject incubator-hawq git commit: HAWQ-343. Core when setting enable_secure_filesystem to true
Date Wed, 03 Feb 2016 06:18:16 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 5ed0678cd -> c26d265fc


HAWQ-343. Core when setting enable_secure_filesystem to true


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

Branch: refs/heads/master
Commit: c26d265fc6680398746f6244b044ccfc200312db
Parents: 5ed0678
Author: Zhanwei Wang <wangzw@apache.org>
Authored: Wed Feb 3 14:08:21 2016 +0800
Committer: Zhanwei Wang <wangzw@apache.org>
Committed: Wed Feb 3 14:08:21 2016 +0800

----------------------------------------------------------------------
 src/backend/cdb/cdbfilesystemcredential.c | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/c26d265f/src/backend/cdb/cdbfilesystemcredential.c
----------------------------------------------------------------------
diff --git a/src/backend/cdb/cdbfilesystemcredential.c b/src/backend/cdb/cdbfilesystemcredential.c
index 4e516d0..feb233a 100644
--- a/src/backend/cdb/cdbfilesystemcredential.c
+++ b/src/backend/cdb/cdbfilesystemcredential.c
@@ -382,6 +382,17 @@ cleanup_filesystem_credentials(Portal portal)
 		}
 		else
 		{
+			/**
+			 * this case happened for the command "set enable_secure_filesystem to true;"
+			 * enable_secure_filesystem is true but credentials did not allocated"
+			 */
+			if (portal->filesystem_credentials == NULL &&
+				portal->filesystem_credentials_memory == NULL)
+				return;
+
+			Assert(portal->filesystem_credentials != NULL &&
+				portal->filesystem_credentials_memory != NULL);
+
 			/*
 			 * Master is responsible for cancel all file system credentials
 			 */


Mime
View raw message