Move "Timeout trace" in asyncqueue trace logging
This commit is contained in:
10
asyncqueue.c
10
asyncqueue.c
@ -465,11 +465,6 @@ static int CommandTimeout(void *cntx, int mode)
|
|||||||
pAsyncQueue self = (pAsyncQueue) cntx;
|
pAsyncQueue self = (pAsyncQueue) cntx;
|
||||||
pAQ_Cmd myCmd = self->command_head;
|
pAQ_Cmd myCmd = self->command_head;
|
||||||
self->nw_tmr = 0;
|
self->nw_tmr = 0;
|
||||||
if (myCmd->retries > 0) {
|
|
||||||
--myCmd->retries;
|
|
||||||
StartCommand(self);
|
|
||||||
} else {
|
|
||||||
int iRet;
|
|
||||||
if (self->trace) {
|
if (self->trace) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
@ -477,6 +472,11 @@ static int CommandTimeout(void *cntx, int mode)
|
|||||||
"Timeout Trace on AsyncQueue %s", self->queue_name);
|
"Timeout Trace on AsyncQueue %s", self->queue_name);
|
||||||
SICSLogWriteHexTime(myCmd->tran->inp_buf, myCmd->tran->inp_idx, eLog, &tv);
|
SICSLogWriteHexTime(myCmd->tran->inp_buf, myCmd->tran->inp_idx, eLog, &tv);
|
||||||
}
|
}
|
||||||
|
if (myCmd->retries > 0) {
|
||||||
|
--myCmd->retries;
|
||||||
|
StartCommand(self);
|
||||||
|
} else {
|
||||||
|
int iRet;
|
||||||
iRet =
|
iRet =
|
||||||
self->protocol->handleEvent(self->protocol, myCmd->tran,
|
self->protocol->handleEvent(self->protocol, myCmd->tran,
|
||||||
AQU_TIMEOUT);
|
AQU_TIMEOUT);
|
||||||
|
Reference in New Issue
Block a user