@@ -440,8 +440,7 @@ void Executive::markCompleted(JobId jobId, bool success) {
440440 if (!success && !isRowLimitComplete ()) {
441441 {
442442 lock_guard<mutex> lock (_incompleteJobsMutex);
443- auto iter = _incompleteJobs.find (jobId);
444- if (iter == _incompleteJobs.end ()) {
443+ if (_incompleteJobs.count (jobId) == 0 ) {
445444 string msg = " Executive::markCompleted failed to find TRACKED " + idStr +
446445 " size=" + to_string (_incompleteJobs.size ());
447446 // If the user query has been cancelled, this is expected for jobs that have not yet
@@ -475,7 +474,7 @@ void Executive::markCompleted(JobId jobId, bool success) {
475474 }
476475 _unTrack (jobId);
477476 if (!success && !isRowLimitComplete ()) {
478- squash (string ( " markComplete error " ) + errStr); // ask to squash
477+ squash (" markComplete error " + errStr); // ask to squash
479478 }
480479}
481480
@@ -841,7 +840,7 @@ void Executive::checkResultFileSize(uint64_t fileSize) {
841840 if (total > maxResultTableSizeBytes) {
842841 LOGS (_log, LOG_LVL_ERROR , " Executive: requesting squash, result file size too large " << total);
843842 util::Error err (util::ErrorCode::CZAR_RESULT_TOO_LARGE ,
844- string ( " Incomplete result already too large " ) + to_string (total));
843+ " Incomplete result already too large " + to_string (total));
845844 _multiError.push_back (err);
846845 squash (" czar, file too large" );
847846 }
0 commit comments