Commit 8be7413d authored by Eric Cano's avatar Eric Cano
Browse files

Fixed uninitialized values used when storing drive status (failed valgrind tests).

parent bcb29b97
......@@ -1856,6 +1856,10 @@ void OStoreDB::RetrieveMount::setDriveStatus(cta::common::dataStructures::DriveS
inputs.status = status;
inputs.vid = mountInfo.vid;
inputs.tapepool = mountInfo.tapePool;
// TODO: statistics!
inputs.byteTransfered = 0;
inputs.filesTransfered = 0;
inputs.latestBandwidth = 0;
OStoreDB::updateDriveStatusInRegitry(dr, driveInfo, inputs);
dr.commit();
}
......@@ -1884,6 +1888,10 @@ void OStoreDB::ArchiveMount::setDriveStatus(cta::common::dataStructures::DriveSt
inputs.status = status;
inputs.vid = mountInfo.vid;
inputs.tapepool = mountInfo.tapePool;
// TODO: statistics!
inputs.byteTransfered = 0;
inputs.filesTransfered = 0;
inputs.latestBandwidth = 0;
OStoreDB::updateDriveStatusInRegitry(dr, driveInfo, inputs);
dr.commit();
}
......
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