Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sds
HEP
HEPnOS
Commits
44ab2518
Commit
44ab2518
authored
Aug 29, 2018
by
Matthieu Dorier
Browse files
updated to match new SDSKV API
parent
05c68ac9
Changes
1
Show whitespace changes
Inline
Side-by-side
src/service/HEPnOSService.cpp
View file @
44ab2518
...
...
@@ -7,6 +7,7 @@
#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <unistd.h>
#include <mpi.h>
#include <margo.h>
...
...
@@ -92,8 +93,13 @@ void hepnos_run_service(MPI_Comm comm, const char* config_file, const char* conn
if
(
config
->
getDatabaseType
()
==
"ldb"
)
db_type
=
KVDB_LEVELDB
;
if
(
config
->
getDatabaseType
()
==
"bdb"
)
db_type
=
KVDB_BERKELEYDB
;
sdskv_database_id_t
db_id
;
ret
=
sdskv_provider_add_database
(
sdskv_prov
,
db_name
,
db_path
,
db_type
,
SDSKV_COMPARE_DEFAULT
,
&
db_id
);
ASSERT
(
ret
==
0
,
"sdskv_provider_add_database() failed (ret = %d)
\n
"
,
ret
);
sdskv_config_t
config
;
std
::
memset
(
&
config
,
0
,
sizeof
(
config
));
config
.
db_name
=
db_name
;
config
.
db_path
=
db_path
;
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
);
}
margo_addr_free
(
mid
,
self_addr
);
...
...
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