Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HEPnOS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
HEP
HEPnOS
Commits
837650b2
Commit
837650b2
authored
Aug 28, 2019
by
Matthieu Dorier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service is now using the C++ API for sdskv
parent
2328f3b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/service/HEPnOSService.cpp
src/service/HEPnOSService.cpp
+4
-6
No files found.
src/service/HEPnOSService.cpp
View file @
837650b2
...
...
@@ -11,7 +11,7 @@
#include <unistd.h>
#include <mpi.h>
#include <margo.h>
#include <sdskv-server.h>
#include <sdskv-server.h
pp
>
#include "ServiceConfig.hpp"
#include "ConnectionInfoGenerator.hpp"
#include "hepnos-service.h"
...
...
@@ -59,9 +59,8 @@ void hepnos_run_service(MPI_Comm comm, const char* config_file, const char* conn
if
(
config
->
hasDatabase
())
{
/* SDSKV provider initialization */
for
(
auto
sdskv_provider_id
=
0
;
sdskv_provider_id
<
config
->
getNumDatabaseProviders
();
sdskv_provider_id
++
)
{
sdskv_provider_t
sdskv_prov
;
ret
=
sdskv_provider_register
(
mid
,
sdskv_provider_id
,
SDSKV_ABT_POOL_DEFAULT
,
&
sdskv_prov
);
ASSERT
(
ret
==
0
,
"sdskv_provider_register() failed (ret = %d)
\n
"
,
ret
);
sdskv
::
provider
*
provider
=
sdskv
::
provider
::
create
(
mid
,
sdskv_provider_id
,
SDSKV_ABT_POOL_DEFAULT
);
for
(
unsigned
i
=
0
;
i
<
config
->
getNumDatabaseTargets
();
i
++
)
{
auto
db_path
=
config
->
getDatabasePath
(
rank
,
sdskv_provider_id
,
i
);
...
...
@@ -76,8 +75,7 @@ void hepnos_run_service(MPI_Comm comm, const char* config_file, const char* conn
config
.
db_name
=
db_name
.
c_str
();
config
.
db_path
=
db_path
.
c_str
();
config
.
db_type
=
db_type
;
ret
=
sdskv_provider_attach_database
(
sdskv_prov
,
&
config
,
&
db_id
);
ASSERT
(
ret
==
0
,
"sdskv_provider_attach_database() failed (ret = %d)
\n
"
,
ret
);
db_id
=
provider
->
attach_database
(
config
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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