Commit 94c6fbeb authored by Michael Davis's avatar Michael Davis
Browse files

[migration] Filters filenames out of list of failure modes in eos-import-files -f

parent 7cf1f774
......@@ -122,7 +122,7 @@ void EosImportDirs::select(const std::list<std::string> &dirs)
" MTIME,"
" CLASSID,"
" DEPTH "
"FROM " + m_tableName;
"FROM CTADIRSHELPER";
std::string connector = " WHERE ";
for(auto &dir : dirs) {
......@@ -132,7 +132,7 @@ void EosImportDirs::select(const std::list<std::string> &dirs)
sql += " ORDER BY DEPTH ASC";
m_selectDirsDbStmt = m_dbConn.createStmt(sql);
std::cerr << "Executing SELECT query against " << m_tableName << " table...";
std::cerr << "Executing SELECT query against CTADIRSHELPER table...";
m_selectDirsDbRset = m_selectDirsDbStmt.executeQuery();
std::cerr << "done." << std::endl;
}
......
......@@ -85,11 +85,11 @@ void EosImportFiles::listFailureModes()
{
const std::string sql = "SELECT"
" RETC,"
" REGEXP_REPLACE(MESSAGE, 'id=[0-9]*', 'id=<id>') AS MSG,"
" REGEXP_REPLACE(REGEXP_REPLACE(MESSAGE, 'path=.*:', 'path=<path>:'), 'id=[0-9]*', 'id=<id>') AS MSG, "
" COUNT(*) AS CNT"
" FROM CTAFILESFAILED"
" GROUP BY RETC,"
" REGEXP_REPLACE(MESSAGE, 'id=[0-9]*', 'id=<id>')"
" REGEXP_REPLACE(REGEXP_REPLACE(MESSAGE, 'path=.*:', 'path=<path>:'), 'id=[0-9]*', 'id=<id>') "
" ORDER BY RETC, MSG";
auto stmt = m_dbConn.createStmt(sql);
auto rset = stmt.executeQuery();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment