@@ -375,8 +375,7 @@ void Executive::markCompleted(JobId jobId, bool success) {
375
375
if (!success && !isRowLimitComplete ()) {
376
376
{
377
377
lock_guard<mutex> lock (_incompleteJobsMutex);
378
- auto iter = _incompleteJobs.find (jobId);
379
- if (iter == _incompleteJobs.end ()) {
378
+ if (_incompleteJobs.count (jobId) == 0 ) {
380
379
string msg = " Executive::markCompleted failed to find TRACKED " + idStr +
381
380
" size=" + to_string (_incompleteJobs.size ());
382
381
// If the user query has been cancelled, this is expected for jobs that have not yet
@@ -410,7 +409,7 @@ void Executive::markCompleted(JobId jobId, bool success) {
410
409
}
411
410
_unTrack (jobId);
412
411
if (!success && !isRowLimitComplete ()) {
413
- squash (string ( " markComplete error " ) + errStr); // ask to squash
412
+ squash (" markComplete error " + errStr); // ask to squash
414
413
}
415
414
}
416
415
@@ -776,7 +775,7 @@ void Executive::checkResultFileSize(uint64_t fileSize) {
776
775
if (total > maxResultTableSizeBytes) {
777
776
LOGS (_log, LOG_LVL_ERROR, " Executive: requesting squash, result file size too large " << total);
778
777
util::Error err (util::ErrorCode::CZAR_RESULT_TOO_LARGE,
779
- string ( " Incomplete result already too large " ) + to_string (total));
778
+ " Incomplete result already too large " + to_string (total));
780
779
_multiError.push_back (err);
781
780
squash (" czar, file too large" );
782
781
}
0 commit comments