Commit 3f07c7b4 authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Removed hardcoded eos server location in diskfile

parent d54da5e2
......@@ -22,6 +22,7 @@
*****************************************************************************/
#include <sys/types.h>
#include "castor/common/CastorConfiguration.hpp"
#include "castor/tape/tapeserver/file/DiskFile.hpp"
#include "castor/tape/tapeserver/file/DiskFileImplementations.hpp"
#include "castor/exception/Errnum.hpp"
......@@ -642,7 +643,7 @@ EosReadFile::EosReadFile(const std::string &eosUrl) {
// Setup parent's variables
m_readPosition = 0;
std::stringstream ss;
ss << "xroot://localhost:1094//" << eosUrl;
ss << "xroot://" << castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "EOSRemoteHostAndPort") << "//" << eosUrl;
m_URL = ss.str();
// and simply open
using XrdCl::OpenFlags;
......@@ -682,7 +683,7 @@ EosWriteFile::EosWriteFile(const std::string& eosUrl) {
// Setup parent's variables
m_writePosition = 0;
std::stringstream ss;
ss << "xroot://localhost:1094//" << eosUrl;
ss << "xroot://" << castor::common::CastorConfiguration::getConfig().getConfEntString("TapeServer", "EOSRemoteHostAndPort") << "//" << eosUrl;
m_URL = ss.str();
// and simply open
using XrdCl::OpenFlags;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment