Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
3f07c7b4
Commit
3f07c7b4
authored
Nov 20, 2015
by
Daniele Kruse
Browse files
Removed hardcoded eos server location in diskfile
parent
d54da5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tapeserver/castor/tape/tapeserver/file/DiskFile.cpp
View file @
3f07c7b4
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment