]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: improve trace info T3_2_0b1_pre1
authorprascle <prascle>
Fri, 21 Apr 2006 15:23:58 +0000 (15:23 +0000)
committerprascle <prascle>
Fri, 21 Apr 2006 15:23:58 +0000 (15:23 +0000)
src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx

index 522ed88ca4ef9ca58f7e063fce7be115aa290268..4b005a5bcd20a8a4d5a4c218e16ab36fade5bc4b 100644 (file)
@@ -102,7 +102,7 @@ SALOME_FileTransferCORBA::~SALOME_FileTransferCORBA()
 
 string SALOME_FileTransferCORBA::getLocalFile(string localFile)
 {
-  MESSAGE("SALOME_FileTransferCORBA::getLocalFile");
+  MESSAGE("SALOME_FileTransferCORBA::getLocalFile " << localFile);
 
   Engines::Container_var container;
 
@@ -147,9 +147,9 @@ string SALOME_FileTransferCORBA::getLocalFile(string localFile)
   string myMachine = GetHostname();
   string localCopy = _theFileRef->getRef(myMachine.c_str());
 
-  if (localCopy.empty())
+  if (localCopy.empty()) // no existing copy available
     {
-      if (localFile.empty())
+      if (localFile.empty()) // no name provided for local copy
        {
          char bufName[256];
          localCopy = tmpnam(bufName);
@@ -187,6 +187,7 @@ string SALOME_FileTransferCORBA::getLocalFile(string localFile)
          MESSAGE("end of transfer");
          fileTransfer->close(fileId);
          _theFileRef->addRef(myMachine.c_str(), localFile.c_str());
+         localCopy = localFile;
        }
       else
        {