Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
Refactory code
Browse files Browse the repository at this point in the history
git-svn-id: svn://irodssvn.ucsd.edu/trunk@5680 ea137bd6-aa86-47b6-b90d-b101d9f19a90
  • Loading branch information
xu-hao committed Mar 4, 2014
1 parent 9a10044 commit 1e2320f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions iRODS/server/core/src/reServerLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,18 +642,15 @@ allocReThr (rsComm_t *rsComm, reExec_t *reExec)

for (i = 0; i < reExec->maxRunCnt; i++) {
if (reExec->reExecProc[i].procExecState == RE_PROC_IDLE) {
if (thrInx == SYS_NO_FREE_RE_THREAD) {
thrInx = i;
reExec->runCnt++;
reExec->reExecProc[thrInx].procExecState = RE_PROC_RUNNING;
break;
}
}
}
/* if (thrInx == SYS_NO_FREE_RE_THREAD) {
thrInx = waitAndFreeReThr (rsComm, reExec);
}*/
if (thrInx >= 0)
reExec->reExecProc[thrInx].procExecState = RE_PROC_RUNNING;

return (thrInx);
}
Expand Down

0 comments on commit 1e2320f

Please sign in to comment.