Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
dcdb
dcdb
Commits
49798b9d
Commit
49798b9d
authored
Aug 13, 2020
by
Alessio Netti
Browse files
libdcdb: fixing minor warnings
parent
d7b8badb
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/src/jobdatastore.cpp
View file @
49798b9d
...
...
@@ -771,7 +771,7 @@ JDError JobDataStoreImpl::parseJobs(CassIterator* rowIt, std::list<JobData>& job
if
(
filterWriteTime
>
0
)
{
// Skipping a job if it does not respect the write time filter
if
(
cass_value_get_int64
(
cass_row_get_column_by_name
(
row
,
"writetime(uid)"
),
&
writeTs
)
!=
CASS_OK
||
writeTs
*
1000
>
filterWriteTime
)
{
if
(
cass_value_get_int64
(
cass_row_get_column_by_name
(
row
,
"writetime(uid)"
),
&
writeTs
)
!=
CASS_OK
||
(
uint64_t
)
writeTs
*
1000
>
filterWriteTime
)
{
continue
;
}
}
...
...
tools/dcdbconfig/jobaction.cpp
View file @
49798b9d
...
...
@@ -113,8 +113,9 @@ void JobAction::doShow(std::string jobId) {
switch
(
err
)
{
case
DCDB
::
JD_OK
:
case
DCDB
::
JD_PARSINGERROR
:
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
{
std
::
cout
<<
"Parsing error. Some fields may not be populated."
<<
std
::
endl
;
}
jobData
.
startTime
.
convertToLocal
();
jobData
.
endTime
.
convertToLocal
();
std
::
cout
<<
"Job ID: "
<<
jobId
<<
std
::
endl
;
...
...
@@ -161,8 +162,9 @@ void JobAction::doList() {
switch
(
err
)
{
case
DCDB
::
JD_OK
:
case
DCDB
::
JD_PARSINGERROR
:
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
{
std
::
cout
<<
"Parsing error. Some fields may not be populated."
<<
std
::
endl
;
}
printList
(
jobList
);
break
;
default:
...
...
@@ -179,8 +181,9 @@ void JobAction::doPending() {
switch
(
err
)
{
case
DCDB
::
JD_OK
:
case
DCDB
::
JD_PARSINGERROR
:
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
{
std
::
cout
<<
"Parsing error. Some fields may not be populated."
<<
std
::
endl
;
}
printList
(
jobList
);
break
;
default:
...
...
@@ -197,8 +200,9 @@ void JobAction::doRunning() {
switch
(
err
)
{
case
DCDB
::
JD_OK
:
case
DCDB
::
JD_PARSINGERROR
:
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
{
std
::
cout
<<
"Parsing error. Some fields may not be populated."
<<
std
::
endl
;
}
printList
(
jobList
);
break
;
default:
...
...
@@ -215,8 +219,9 @@ void JobAction::doFinished() {
switch
(
err
)
{
case
DCDB
::
JD_OK
:
case
DCDB
::
JD_PARSINGERROR
:
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
if
(
err
==
DCDB
::
JD_PARSINGERROR
)
{
std
::
cout
<<
"Parsing error. Some fields may not be populated."
<<
std
::
endl
;
}
printList
(
jobList
);
break
;
default:
...
...
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