You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-05 16:15:50 +03:00
This reverts commit c6d4c2a102
.
Co-authored-by: Roman Nozdrin <rnozdrin@mariadb.com>
This commit is contained in:
@@ -168,7 +168,21 @@ 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;
|
||||
|
||||
@@ -180,11 +194,8 @@ void XMLGenProc::makeTableData(const CalpontSystemCatalog::TableName& table)
|
||||
{
|
||||
try
|
||||
{
|
||||
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);
|
||||
xmlTextWriterWriteFormatAttribute(fWriter, BAD_CAST xmlTagTable[TAG_TBL_OID], "%s",
|
||||
tableOIDStr.c_str());
|
||||
}
|
||||
catch (std::exception& ex)
|
||||
{
|
||||
|
Reference in New Issue
Block a user