Update getInstanceAndFidFromCTA size check
In CatalogueFetch.cpp and RestoreFilesCmd.cpp there is this check:
if(listedTapeFiles.size() != 1) {
throw std::runtime_error("Unexpected result set: listedTapeFiles size expected=1 received=" + std::to_string(listedTapeFiles.size()));
}
It should be 1 or 2 because 2 will be returned if there is a dual copy. It should be:
if(listedTapeFiles.size() != 1 && listedTapeFiles.size() != 2) {
throw std::runtime_error("Unexpected result set: listedTapeFiles size expected=(1 | 2) received=" + std::to_string(listedTapeFiles.size()));
}
Edited by Lasse Tjernaes Wardenaer