Skip to content

Commit

Permalink
remove reset jobstatus and replace with forcejobstatus
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri authored and arogge committed Nov 7, 2022
1 parent f5a0286 commit ed06265
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/dird/fd_cmds.cc
Expand Up @@ -294,7 +294,7 @@ bool ConnectToFileDaemon(JobControlRecord* jcr,
delete jcr->file_bsock;
jcr->file_bsock = nullptr;
}
jcr->resetJobStatus(JS_Running);
jcr->forceJobStatus(JS_Running);
jcr->impl->connection_handshake_try_
= ClientConnectionHandshakeMode::kCleartextFirst;
break;
Expand Down
1 change: 0 additions & 1 deletion core/src/include/jcr.h
Expand Up @@ -133,7 +133,6 @@ class JobControlRecord {
const char* get_OperationName(); /**< in lib/jcr.c */
const char* get_ActionName(bool past = false); /**< in lib/jcr.c */
void setJobStatus(int newJobStatus); /**< in lib/jcr.c */
void resetJobStatus(int newJobStatus); /**< in lib/jcr.c */
bool sendJobStatus(); /**< in lib/jcr.c */
bool sendJobStatus(int newJobStatus); /**< in lib/jcr.c */
bool JobReads(); /**< in lib/jcr.c */
Expand Down
5 changes: 0 additions & 5 deletions core/src/lib/jcr.cc
Expand Up @@ -756,11 +756,6 @@ void JobControlRecord::setJobStarted()
job_started_time = time(nullptr);
}

void JobControlRecord::resetJobStatus(int newJobStatus)
{
JobStatus = newJobStatus;
}

void JobControlRecord::setJobStatus(int newJobStatus)
{
int priority;
Expand Down

0 comments on commit ed06265

Please sign in to comment.