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
d713b843
Commit
d713b843
authored
Apr 26, 2018
by
Matthieu Dorier
Browse files
removed logs
parent
3e9b1b2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/private/DataStoreImpl.hpp
View file @
d713b843
...
...
@@ -267,9 +267,6 @@ class DataStore::Impl {
auto
db_id
=
m_sdskv_db
[
provider_idx
];
// find the size of the value, as a way to check if the key exists
hg_size_t
vsize
;
std
::
cerr
<<
"[LOG] load (level="
<<
(
int
)
level
<<
", container=
\"
"
<<
containerName
<<
"
\"
, object=
\"
"
<<
objectName
<<
"
\"
)"
<<
std
::
endl
;
ret
=
sdskv_length
(
ph
,
db_id
,
entry
->
raw
(),
entry
->
length
(),
&
vsize
);
if
(
ret
==
SDSKV_ERR_UNKNOWN_KEY
)
{
return
false
;
...
...
@@ -314,9 +311,6 @@ class DataStore::Impl {
if
(
ret
!=
SDSKV_ERR_UNKNOWN_KEY
)
{
// there was a problem with sdskv
throw
Exception
(
"Could not check if key exists in SDSKV (sdskv_length error)"
);
}
std
::
cerr
<<
"[LOG] store (level="
<<
(
int
)
level
<<
", container=
\"
"
<<
containerName
<<
"
\"
, object=
\"
"
<<
objectName
<<
"
\"
)"
<<
std
::
endl
;
ret
=
sdskv_put
(
ph
,
db_id
,
entry
->
raw
(),
entry
->
length
(),
data
.
data
(),
data
.
size
());
if
(
ret
!=
SDSKV_SUCCESS
)
{
throw
Exception
(
"Could not put key/value pair in SDSKV (sdskv_put error)"
);
...
...
@@ -354,9 +348,6 @@ class DataStore::Impl {
auto
db_id
=
m_sdskv_db
[
provider_idx
];
// issue an sdskv_list_keys
hg_size_t
max_keys
=
maxKeys
;
std
::
cerr
<<
"[LOG] list keys (level="
<<
(
int
)
level
<<
", container=
\"
"
<<
containerName
<<
"
\"
, greaterthan=
\"
"
<<
lower
<<
"
\"
)"
<<
std
::
endl
;
ret
=
sdskv_list_keys
(
ph
,
db_id
,
lb_entry
->
raw
(),
lb_entry
->
length
(),
keys_ptr
.
data
(),
keys_len
.
data
(),
&
max_keys
);
if
(
ret
!=
HG_SUCCESS
)
{
...
...
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