From 1dcba0dbb0d0c8788f5192eef392cb87a0d43b69 Mon Sep 17 00:00:00 2001 From: prascle Date: Fri, 21 Apr 2006 15:23:58 +0000 Subject: [PATCH] PR: improve trace info --- src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx b/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx index 522ed88ca..4b005a5bc 100644 --- a/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx +++ b/src/LifeCycleCORBA/SALOME_FileTransferCORBA.cxx @@ -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 { -- 2.39.2