Skip to content
Snippets Groups Projects
Commit 5e2f2427 authored by Steven Murray's avatar Steven Murray
Browse files

Revert "Downgraded unnecessary 'select for update' within OracleCatalogue"

This reverts commit 7388bd57.

The 'SELECT FOR UPDATE' was not the bottle neck.  I am putting it
back for now.
parent 7388bd57
Branches
Tags
No related merge requests found
......@@ -89,7 +89,8 @@ void OracleCatalogue::deleteArchiveFile(const std::string &diskInstanceName, con
"LEFT OUTER JOIN TAPE_FILE ON "
"ARCHIVE_FILE.ARCHIVE_FILE_ID = TAPE_FILE.ARCHIVE_FILE_ID "
"WHERE "
"ARCHIVE_FILE.ARCHIVE_FILE_ID = :ARCHIVE_FILE_ID";
"ARCHIVE_FILE.ARCHIVE_FILE_ID = :ARCHIVE_FILE_ID "
"FOR UPDATE";
utils::Timer t;
auto conn = m_connPool.getConn();
const auto getConnTime = t.secs(utils::Timer::resetCounter);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment