init/drop traf and ddl transactions changed init/drop traf so it doesn't run in one transaction if ddl_xns are on. It was causing issues when authorization was enabled. If we fix the issue related to authorization, init/drop traf could be enablled to run in one xn.
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/0dc67ae3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/0dc67ae3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/0dc67ae3 Branch: refs/heads/master Commit: 0dc67ae3e6ddbeeed1fc517528d794bff312989e Parents: 1c52a1b Author: Anoop Sharma <[email protected]> Authored: Fri Apr 22 15:14:27 2016 +0000 Committer: Anoop Sharma <[email protected]> Committed: Fri Apr 22 15:14:27 2016 +0000 ---------------------------------------------------------------------- core/sql/generator/GenPreCode.cpp | 2 ++ core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/0dc67ae3/core/sql/generator/GenPreCode.cpp ---------------------------------------------------------------------- diff --git a/core/sql/generator/GenPreCode.cpp b/core/sql/generator/GenPreCode.cpp index daf5d1c..f8ff808 100644 --- a/core/sql/generator/GenPreCode.cpp +++ b/core/sql/generator/GenPreCode.cpp @@ -2839,6 +2839,8 @@ short DDLExpr::ddlXnsInfo(NABoolean &isDDLxn, NABoolean &xnCanBeStarted) if ((ddlXns()) && ( (purgedataHbase()) || + (initHbase()) || + (dropHbase()) || (initAuthorization()) || (dropAuthorization()) || (upgradeRepos()) http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/0dc67ae3/core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp ---------------------------------------------------------------------- diff --git a/core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp b/core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp index d186b46..bd47ccf 100644 --- a/core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp +++ b/core/sql/sqlcomp/CmpSeabaseDDLcommon.cpp @@ -4877,8 +4877,8 @@ short CmpSeabaseDDL::updateSeabaseMDTable( if (!insertPrivMgrInfo(objUID, fullName, objectType, - tableInfo->objOwnerID, - tableInfo->schemaOwnerID, + objOwnerID, + schemaOwnerID, ComUser::getCurrentUser())) { *CmpCommon::diags()
