Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
21962bc0
Commit
21962bc0
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[CTA-EOS] Fixes CTA objects initialisation order
parent
565be4a9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
xroot_plugins/CMakeLists.txt
+1
-1
1 addition, 1 deletion
xroot_plugins/CMakeLists.txt
xroot_plugins/XrdSsiCtaServiceProvider.cpp
+8
-4
8 additions, 4 deletions
xroot_plugins/XrdSsiCtaServiceProvider.cpp
with
9 additions
and
5 deletions
xroot_plugins/CMakeLists.txt
+
1
−
1
View file @
21962bc0
...
...
@@ -32,7 +32,7 @@ set_target_properties(XrdCtaOfs PROPERTIES INSTALL_RPATH ${PROTOBUF3_RPATH})
add_definitions
(
-DXRDSSI_DEBUG
)
include_directories
(
../xroot_ssi_pb
)
add_library
(
XrdSsiCta MODULE XrdSsiCtaServiceProvider.cpp XrdSsiCtaRequestProc.cpp
)
target_link_libraries
(
XrdSsiCta ctaeosmessages
${
PROTOBUF3_LIBRARIES
}
XrdSsi-4 XrdSsiLib
ctacommon ctaobjectstore ctacatalogue
ctascheduler
)
target_link_libraries
(
XrdSsiCta
XrdSsi-4 XrdSsiLib
ctaeosmessages
${
PROTOBUF3_LIBRARIES
}
ctascheduler
ctacommon ctaobjectstore ctacatalogue
)
set_target_properties
(
XrdSsiCta PROPERTIES INSTALL_RPATH
${
PROTOBUF3_RPATH
}
)
INSTALL
(
TARGETS XrdCtaOfs DESTINATION usr/
${
CMAKE_INSTALL_LIBDIR
}
)
...
...
This diff is collapsed.
Click to expand it.
xroot_plugins/XrdSsiCtaServiceProvider.cpp
+
8
−
4
View file @
21962bc0
...
...
@@ -83,14 +83,13 @@ bool XrdSsiCtaServiceProvider::Init(XrdSsiLogger *logP, XrdSsiCluster *clsP, con
const
std
::
list
<
log
::
Param
>
params
=
{
log
::
Param
(
"version"
,
CTA_VERSION
)};
log
::
Logger
&
log
=
*
m_log
;
// Initialise the catalogue
and scheduler
// Initialise the catalogue
const
rdbms
::
Login
catalogueLogin
=
rdbms
::
Login
::
parseFile
(
"/etc/cta/cta_catalogue_db.conf"
);
const
uint64_t
nbConns
=
m_ctaConf
.
getConfEntInt
<
uint64_t
>
(
"Catalogue"
,
"NumberOfConnections"
,
nullptr
);
const
uint64_t
nbArchiveFileListingConns
=
2
;
m_catalogue
=
catalogue
::
CatalogueFactory
::
create
(
*
m_log
,
catalogueLogin
,
nbConns
,
nbArchiveFileListingConns
);
m_scheduler
=
cta
::
make_unique
<
cta
::
Scheduler
>
(
*
m_catalogue
,
*
m_scheddb
,
5
,
2
*
1000
*
1000
);
// Initialise the Backend
...
...
@@ -98,11 +97,16 @@ bool XrdSsiCtaServiceProvider::Init(XrdSsiLogger *logP, XrdSsiCluster *clsP, con
m_backendPopulator
=
cta
::
make_unique
<
cta
::
objectstore
::
BackendPopulator
>
(
*
m_backend
,
"Frontend"
,
cta
::
log
::
LogContext
(
*
m_log
));
m_scheddb
=
cta
::
make_unique
<
cta
::
OStoreDBWithAgent
>
(
*
m_backend
,
m_backendPopulator
->
getAgentReference
(),
*
m_catalogue
,
*
m_log
);
// If the backend is a VFS, make sure we don't delete it on exit. If not, never mind.
// Initialise the Scheduler
m_scheduler
=
cta
::
make_unique
<
cta
::
Scheduler
>
(
*
m_catalogue
,
*
m_scheddb
,
5
,
2
*
1000
*
1000
);
try
{
// If the backend is a VFS, make sure we don't delete it on exit
dynamic_cast
<
objectstore
::
BackendVFS
&>
(
*
m_backend
).
noDeleteOnExit
();
}
catch
(
std
::
bad_cast
&
)
{}
}
catch
(
std
::
bad_cast
&
)
{
// If not, never mind
}
// Start the heartbeat thread for the agent object. The thread is guaranteed to have started before we call the unique_ptr deleter
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment