@@ -440,8 +440,7 @@ void Executive::markCompleted(JobId jobId, bool success) {
440
440
if (!success && !isRowLimitComplete ()) {
441
441
{
442
442
lock_guard<mutex> lock (_incompleteJobsMutex);
443
- auto iter = _incompleteJobs.find (jobId);
444
- if (iter == _incompleteJobs.end ()) {
443
+ if (_incompleteJobs.count (jobId) == 0 ) {
445
444
string msg = " Executive::markCompleted failed to find TRACKED " + idStr +
446
445
" size=" + to_string (_incompleteJobs.size ());
447
446
// 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) {
475
474
}
476
475
_unTrack (jobId);
477
476
if (!success && !isRowLimitComplete ()) {
478
- squash (string ( " markComplete error " ) + errStr); // ask to squash
477
+ squash (" markComplete error " + errStr); // ask to squash
479
478
}
480
479
}
481
480
@@ -841,7 +840,7 @@ void Executive::checkResultFileSize(uint64_t fileSize) {
841
840
if (total > maxResultTableSizeBytes) {
842
841
LOGS (_log, LOG_LVL_ERROR, " Executive: requesting squash, result file size too large " << total);
843
842
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));
845
844
_multiError.push_back (err);
846
845
squash (" czar, file too large" );
847
846
}
0 commit comments