From 144b34bd33837133ec83c215546d6cfe033da756 Mon Sep 17 00:00:00 2001
From: Gerardo Ganis <Gerardo.Ganis@cern.ch>
Date: Thu, 26 Jan 2012 16:03:44 +0000
Subject: [PATCH] Do not rely on adjacency to remove duplicates

git-svn-id: http://root.cern.ch/svn/root/trunk@42798 27541ba8-7e3a-0410-8455-c3a389f83636
---
 proof/proof/src/TDataSetManagerFile.cxx | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/proof/proof/src/TDataSetManagerFile.cxx b/proof/proof/src/TDataSetManagerFile.cxx
index 2db33e4deba..0140129a08d 100644
--- a/proof/proof/src/TDataSetManagerFile.cxx
+++ b/proof/proof/src/TDataSetManagerFile.cxx
@@ -1588,10 +1588,8 @@ Int_t TDataSetManagerFile::RegisterDataSet(const char *uri,
    uniqueFileList->Add(prevFile);
    while (TFileInfo *obj = (TFileInfo*)nextFile()) {
       // Add entities only once to the temporary list
-      if (prevFile->Compare(obj)) {
+      if (!uniqueFileList->FindObject(obj->GetFirstUrl()->GetUrl()))
          uniqueFileList->Add(obj);
-         prevFile = obj;
-      }
    }
 
    // Clear dataSet and add contents of uniqueFileList needed otherwise
-- 
GitLab