Fix bug in building local list of valid files.
authorrgrosso <Raffaele.Grosso@cern.ch>
Mon, 3 Nov 2014 14:38:50 +0000 (15:38 +0100)
committerrgrosso <Raffaele.Grosso@cern.ch>
Mon, 3 Nov 2014 14:38:50 +0000 (15:38 +0100)
STEER/CDB/AliCDBLocal.cxx

index f60d111..895ed20 100644 (file)
@@ -907,7 +907,7 @@ void AliCDBLocal::QueryValidFiles() {
                   highestV = aVersion;
                   highestSubV = aSubVersion;
                   hvRunRange = aRunRange;
-                } else {
+                } else if (aVersion == highestV) {
                   if (aSubVersion > highestSubV) {
                     highestSubV = aSubVersion;
                     hvRunRange = aRunRange;