Commit 49798b9d authored by Alessio Netti's avatar Alessio Netti
Browse files

libdcdb: fixing minor warnings

parent d7b8badb
......@@ -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;
}
}
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment