Skip to content
Snippets Groups Projects
Commit 9401c77f authored by Victor Kotlyar's avatar Victor Kotlyar
Browse files

cta/CTA#161 Max drives for retrieves not considered

Add logging for the tape VID for potential mounts of retrieve
requests in Scheduler::getNextMount
parent b7d46812
No related branches found
No related tags found
No related merge requests found
......@@ -567,8 +567,11 @@ std::unique_ptr<TapeMount> Scheduler::getNextMount(const std::string &logicalLib
mountPassesACriteria = true;
if (!mountPassesACriteria || existingMounts >= m->maxDrivesAllowed) {
log::ScopedParamContainer params(lc);
params.add("tapepool", m->tapePool)
.add("mountType", common::dataStructures::toString(m->type))
params.add("tapepool", m->tapePool);
if ( m->type == common::dataStructures::MountType::Retrieve) {
params.add("VID", m->vid);
}
params.add("mountType", common::dataStructures::toString(m->type))
.add("existingMounts", existingMounts)
.add("bytesQueued", m->bytesQueued)
.add("minBytesToWarrantMount", m_minBytesToWarrantAMount)
......@@ -584,8 +587,11 @@ std::unique_ptr<TapeMount> Scheduler::getNextMount(const std::string &logicalLib
// populate the mount with a weight
m->ratioOfMountQuotaUsed = 1.0L * existingMounts / m->maxDrivesAllowed;
log::ScopedParamContainer params(lc);
params.add("tapepool", m->tapePool)
.add("mountType", common::dataStructures::toString(m->type))
params.add("tapepool", m->tapePool);
if ( m->type == common::dataStructures::MountType::Retrieve) {
params.add("VID", m->vid);
}
params.add("mountType", common::dataStructures::toString(m->type))
.add("existingMounts", existingMounts)
.add("bytesQueued", m->bytesQueued)
.add("minBytesToWarrantMount", m_minBytesToWarrantAMount)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment