trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [1/2] incubator-trafodion git commit: [TRAFODION-2716] Query compilation gets stuck at listSnapshots() at times
Date Fri, 18 Aug 2017 17:53:13 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 7f09f6605 -> c92e761ee


[TRAFODION-2716] Query compilation gets stuck at listSnapshots() at times

To reduce the impact on the compilation when there are many snapshots,
call Admin.listSnapshots  only when cqd TRAF_TABLE_SNAPSHOT_SCAN is set to
LATEST or SUFFIX.


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

Branch: refs/heads/master
Commit: eb4b4aaa584291fb8ff8588c423b8854897c9c2a
Parents: 9cac537
Author: selvaganesang <selva.govindarajan@esgyn.com>
Authored: Tue Aug 15 23:45:39 2017 +0000
Committer: selvaganesang <selva.govindarajan@esgyn.com>
Committed: Tue Aug 15 23:45:39 2017 +0000

----------------------------------------------------------------------
 core/sql/sqlcomp/CmpSeabaseDDLtable.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/eb4b4aaa/core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
----------------------------------------------------------------------
diff --git a/core/sql/sqlcomp/CmpSeabaseDDLtable.cpp b/core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
index 3cdd063..7b6e9eb 100644
--- a/core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
+++ b/core/sql/sqlcomp/CmpSeabaseDDLtable.cpp
@@ -12681,7 +12681,9 @@ TrafDesc * CmpSeabaseDDL::getSeabaseTableDesc(const NAString &catName,
         }
       else
         {
-          Int32 ctlFlags = GET_SNAPSHOTS; // get snapshot
+          Int32 ctlFlags = 0;
+          if (CmpCommon::getDefault(TRAF_TABLE_SNAPSHOT_SCAN) != DF_NONE)
+             ctlFlags = GET_SNAPSHOTS; // get snapshot
           if ((CmpCommon::getDefault(TRAF_READ_OBJECT_DESC) == DF_ON) &&
               (!Get_SqlParser_Flags(INTERNAL_QUERY_FROM_EXEUTIL)) &&
               (NOT includeInvalidDefs))


Mime
View raw message