Fix hadd and TFileMerger when the number of files exceeds the number of available file descriptors (and/or the user fixed limit).  Previous, the resulting file was only containing the information from the last batch of files! (The issue was introduced in revision 40569 (post v5.30) which was adding support for merging more files than the maximum number of file descriptor).
Fix hadd and TFileMerger when the number of files exceeds the number of available file descriptors
(and/or the user fixed limit).  Previous, the resulting file was only containing the information
from the last batch of files! (The issue was introduced in revision 40569 (post v5.30) which was
adding support for merging more files than the maximum number of file descriptor).


git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@41394 27541ba8-7e3a-0410-8455-c3a389f83636

Duraznos/root,mattkretz/root,mattkretz/root,kirbyherm/root-r-tools,olifre/root,karies/root,cxx-hep/root-cern,jrtomps/root,kirbyherm/root-r-tools,mkret2/root,jrtomps/root,sbinet/cxx-root,sawenzel/root,satyarth934/root,gganis/root,nilqed/root,bbockelm/root,Dr15Jones/root,simonpf/root,Y--/root,root-mirror/root,mhuwiler/rootauto,evgeny-boger/root,mattkretz/root,tc3t/qoot,nilqed/root,veprbl/root,beniz/root,agarciamontoro/root,davidlt/root,bbockelm/root,kirbyherm/root-r-tools,georgtroska/root,esakellari/my_root_for_test,vukasinmilosevic/root,arch1tect0r/root,karies/root,root-mirror/root,mkret2/root,arch1tect0r/root,mattkretz/root,zzxuanyuan/root-compressor-dummy,nilqed/root,agarciamontoro/root,esakellari/my_root_for_test,agarciamontoro/root,veprbl/root,simonpf/root,mkret2/root,strykejern/TTreeReader,alexschlueter/cern-root,pspe/root,alexschlueter/cern-root,Y--/root,dfunke/root,simonpf/root,evgeny-boger/root,esakellari/root,vukasinmilosevic/root,simonpf/root,perovic/root,agarciamontoro/root,jrtomps/root,pspe/root,lgiommi/root,krafczyk/root,root-mirror/root,abhinavmoudgil95/root,pspe/root,omazapa/root,satyarth934/root,pspe/root,krafczyk/root,bbockelm/root,mattkretz/root,jrtomps/root,cxx-hep/root-cern,strykejern/TTreeReader,sbinet/cxx-root,omazapa/root-old,karies/root,simonpf/root,thomaskeck/root,davidlt/root,nilqed/root,zzxuanyuan/root,veprbl/root,sawenzel/root,sawenzel/root,zzxuanyuan/root,vukasinmilosevic/root,ffurano/root5,gganis/root,sawenzel/root,sirinath/root,veprbl/root,pspe/root,georgtroska/root,lgiommi/root,gbitzes/root,BerserkerTroll/root,gbitzes/root,gbitzes/root,zzxuanyuan/root,georgtroska/root,perovic/root,krafczyk/root,nilqed/root,arch1tect0r/root,mhuwiler/rootauto,bbockelm/root,georgtroska/root,Y--/root,Duraznos/root,agarciamontoro/root,arch1tect0r/root,smarinac/root,buuck/root,buuck/root,simonpf/root,smarinac/root,BerserkerTroll/root,omazapa/root-old,mkret2/root,gganis/root,beniz/root,smarinac/root,perovic/root,Dr15Jones/root,zzxuanyuan/root,sawenzel/root,sirinath/root,tc3t/qoot,sirinath/root,davidlt/root,lgiommi/root,satyarth934/root,tc3t/qoot,CristinaCristescu/root,alexschlueter/cern-root,mattkretz/root,gbitzes/root,nilqed/root,BerserkerTroll/root,evgeny-boger/root,tc3t/qoot,ffurano/root5,abhinavmoudgil95/root,sirinath/root,sbinet/cxx-root,root-mirror/root,sawenzel/root,perovic/root,ffurano/root5,esakellari/root,georgtroska/root,beniz/root,mhuwiler/rootauto,dfunke/root,karies/root,arch1tect0r/root,esakellari/my_root_for_test,omazapa/root-old,sawenzel/root,smarinac/root,satyarth934/root,esakellari/root,gbitzes/root,arch1tect0r/root,sirinath/root,dfunke/root,BerserkerTroll/root,pspe/root,veprbl/root,evgeny-boger/root,mkret2/root,lgiommi/root,vukasinmilosevic/root,BerserkerTroll/root,zzxuanyuan/root,gbitzes/root,arch1tect0r/root,agarciamontoro/root,jrtomps/root,bbockelm/root,omazapa/root-old,zzxuanyuan/root-compressor-dummy,zzxuanyuan/root,Duraznos/root,satyarth934/root,arch1tect0r/root,mkret2/root,simonpf/root,0x0all/ROOT,esakellari/my_root_for_test,0x0all/ROOT,mhuwiler/rootauto,evgeny-boger/root,karies/root,esakellari/root,sirinath/root,mattkretz/root,pspe/root,smarinac/root,simonpf/root,cxx-hep/root-cern,buuck/root,satyarth934/root,mhuwiler/rootauto,thomaskeck/root,Dr15Jones/root,beniz/root,satyarth934/root,kirbyherm/root-r-tools,Duraznos/root,gbitzes/root,evgeny-boger/root,karies/root,satyarth934/root,lgiommi/root,krafczyk/root,zzxuanyuan/root-compressor-dummy,kirbyherm/root-r-tools,beniz/root,tc3t/qoot,davidlt/root,beniz/root,perovic/root,sbinet/cxx-root,evgeny-boger/root,simonpf/root,vukasinmilosevic/root,esakellari/root,thomaskeck/root,root-mirror/root,gganis/root,arch1tect0r/root,bbockelm/root,Duraznos/root,mattkretz/root,simonpf/root,davidlt/root,dfunke/root,abhinavmoudgil95/root,omazapa/root-old,root-mirror/root,jrtomps/root,sirinath/root,omazapa/root-old,olifre/root,mhuwiler/rootauto,davidlt/root,esakellari/my_root_for_test,abhinavmoudgil95/root,georgtroska/root,smarinac/root,mkret2/root,sbinet/cxx-root,BerserkerTroll/root,Y--/root,pspe/root,omazapa/root-old,gbitzes/root,Y--/root,gganis/root,olifre/root,sbinet/cxx-root,Dr15Jones/root,omazapa/root,georgtroska/root,root-mirror/root,Y--/root,zzxuanyuan/root-compressor-dummy,veprbl/root,abhinavmoudgil95/root,davidlt/root,kirbyherm/root-r-tools,mattkretz/root,veprbl/root,davidlt/root,perovic/root,georgtroska/root,perovic/root,Duraznos/root,esakellari/my_root_for_test,alexschlueter/cern-root,davidlt/root,gbitzes/root,omazapa/root-old,omazapa/root,krafczyk/root,evgeny-boger/root,mkret2/root,vukasinmilosevic/root,buuck/root,alexschlueter/cern-root,satyarth934/root,dfunke/root,jrtomps/root,veprbl/root,bbockelm/root,0x0all/ROOT,root-mirror/root,olifre/root,zzxuanyuan/root,satyarth934/root,lgiommi/root,olifre/root,CristinaCristescu/root,Y--/root,zzxuanyuan/root-compressor-dummy,kirbyherm/root-r-tools,davidlt/root,CristinaCristescu/root,mattkretz/root,CristinaCristescu/root,arch1tect0r/root,olifre/root,cxx-hep/root-cern,Duraznos/root,karies/root,CristinaCristescu/root,cxx-hep/root-cern,omazapa/root,bbockelm/root,0x0all/ROOT,olifre/root,thomaskeck/root,esakellari/my_root_for_test,pspe/root,dfunke/root,nilqed/root,Duraznos/root,zzxuanyuan/root-compressor-dummy,pspe/root,gbitzes/root,thomaskeck/root,thomaskeck/root,sbinet/cxx-root,perovic/root,sbinet/cxx-root,vukasinmilosevic/root,lgiommi/root,krafczyk/root,smarinac/root,abhinavmoudgil95/root,0x0all/ROOT,esakellari/root,buuck/root,simonpf/root,zzxuanyuan/root,mhuwiler/rootauto,veprbl/root,Dr15Jones/root,buuck/root,esakellari/root,Duraznos/root,sirinath/root,abhinavmoudgil95/root,root-mirror/root,dfunke/root,tc3t/qoot,0x0all/ROOT,gganis/root,krafczyk/root,esakellari/root,buuck/root,georgtroska/root,root-mirror/root,strykejern/TTreeReader,dfunke/root,omazapa/root-old,thomaskeck/root,zzxuanyuan/root-compressor-dummy,0x0all/ROOT,CristinaCristescu/root,omazapa/root,dfunke/root,olifre/root,satyarth934/root,omazapa/root,agarciamontoro/root,sirinath/root,lgiommi/root,karies/root,dfunke/root,agarciamontoro/root,omazapa/root,abhinavmoudgil95/root,georgtroska/root,omazapa/root-old,sirinath/root,CristinaCristescu/root,buuck/root,strykejern/TTreeReader,gganis/root,0x0all/ROOT,strykejern/TTreeReader,perovic/root,strykejern/TTreeReader,nilqed/root,veprbl/root,mhuwiler/rootauto,olifre/root,nilqed/root,perovic/root,jrtomps/root,bbockelm/root,lgiommi/root,sawenzel/root,omazapa/root,omazapa/root,gganis/root,agarciamontoro/root,krafczyk/root,mkret2/root,buuck/root,beniz/root,beniz/root,zzxuanyuan/root-compressor-dummy,georgtroska/root,zzxuanyuan/root-compressor-dummy,alexschlueter/cern-root,esakellari/my_root_for_test,vukasinmilosevic/root,veprbl/root,esakellari/root,omazapa/root,CristinaCristescu/root,thomaskeck/root,olifre/root,Dr15Jones/root,pspe/root,jrtomps/root,zzxuanyuan/root,karies/root,bbockelm/root,beniz/root,tc3t/qoot,Dr15Jones/root,omazapa/root-old,sawenzel/root,tc3t/qoot,BerserkerTroll/root,Y--/root,nilqed/root,krafczyk/root,sbinet/cxx-root,arch1tect0r/root,olifre/root,vukasinmilosevic/root,karies/root,ffurano/root5,BerserkerTroll/root,nilqed/root,gbitzes/root,agarciamontoro/root,root-mirror/root,mhuwiler/rootauto,tc3t/qoot,beniz/root,vukasinmilosevic/root,beniz/root,evgeny-boger/root,ffurano/root5,ffurano/root5,abhinavmoudgil95/root,esakellari/my_root_for_test,Y--/root,cxx-hep/root-cern,abhinavmoudgil95/root,esakellari/root,jrtomps/root,CristinaCristescu/root,mkret2/root,mattkretz/root,dfunke/root,cxx-hep/root-cern,smarinac/root,agarciamontoro/root,thomaskeck/root,bbockelm/root,Duraznos/root,lgiommi/root,krafczyk/root,zzxuanyuan/root,sbinet/cxx-root,davidlt/root,tc3t/qoot,zzxuanyuan/root-compressor-dummy,karies/root,mhuwiler/rootauto,sirinath/root,zzxuanyuan/root-compressor-dummy,vukasinmilosevic/root,evgeny-boger/root,lgiommi/root,evgeny-boger/root,Duraznos/root,BerserkerTroll/root,perovic/root,gganis/root,cxx-hep/root-cern,krafczyk/root,sawenzel/root,sawenzel/root,BerserkerTroll/root,alexschlueter/cern-root,sbinet/cxx-root,gganis/root,smarinac/root,mhuwiler/rootauto,thomaskeck/root,gganis/root,CristinaCristescu/root,jrtomps/root,mkret2/root,esakellari/root,ffurano/root5,0x0all/ROOT,zzxuanyuan/root,smarinac/root,strykejern/TTreeReader,Y--/root,buuck/root,zzxuanyuan/root,CristinaCristescu/root,omazapa/root,BerserkerTroll/root,Y--/root,esakellari/my_root_for_test,abhinavmoudgil95/root,buuck/root