You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-5057 Revert "Merge pull request #2326 from drrtuy/MCOL-4912-dev6"
This reverts commit980ac4972f
, reversing changes made to81e8764e49
.
This commit is contained in:
@@ -168,21 +168,7 @@ void XMLGenProc::startXMLFile()
|
||||
// makeTableData
|
||||
// Create XML tag for a table.
|
||||
//------------------------------------------------------------------------------
|
||||
// This method is used by colxml only and it can be relatively slower doing tableRID()
|
||||
// first call. All subsequent calls will re-use data from CalpontSystemCatalog cache.
|
||||
void XMLGenProc::makeTableData(const CalpontSystemCatalog::TableName& table)
|
||||
{
|
||||
boost::shared_ptr<CalpontSystemCatalog> cat =
|
||||
CalpontSystemCatalog::makeCalpontSystemCatalog(BULK_SYSCAT_SESSION_ID);
|
||||
cat->identity(CalpontSystemCatalog::EC);
|
||||
std::ostringstream oss;
|
||||
// tableRID method might take a lot with a significant EM.
|
||||
oss << cat->tableRID(table).objnum;
|
||||
|
||||
makeTableData(table, oss.str());
|
||||
}
|
||||
|
||||
void XMLGenProc::makeTableData(const CalpontSystemCatalog::TableName& table, const std::string& tableOIDStr)
|
||||
{
|
||||
static unsigned kount;
|
||||
|
||||
@@ -194,8 +180,11 @@ void XMLGenProc::makeTableData(const CalpontSystemCatalog::TableName& table, con
|
||||
{
|
||||
try
|
||||
{
|
||||
xmlTextWriterWriteFormatAttribute(fWriter, BAD_CAST xmlTagTable[TAG_TBL_OID], "%s",
|
||||
tableOIDStr.c_str());
|
||||
boost::shared_ptr<CalpontSystemCatalog> cat =
|
||||
CalpontSystemCatalog::makeCalpontSystemCatalog(BULK_SYSCAT_SESSION_ID);
|
||||
cat->identity(CalpontSystemCatalog::EC);
|
||||
xmlTextWriterWriteFormatAttribute(fWriter, BAD_CAST xmlTagTable[TAG_TBL_OID], "%d",
|
||||
cat->tableRID(table).objnum);
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user