Fix typo; fix double count decrement.

This commit is contained in:
counterpoint
2015-07-21 11:00:47 +01:00
parent c33f1199d9
commit 78e046c9f8

View File

@ -558,8 +558,6 @@ dcb_process_victim_queue(DCB *listofdcb)
} }
else else
{ {
if(dcb->server)
atomic_add(&dcb->server->stats.n_current,-1);
dcb->fd = DCBFD_CLOSED; dcb->fd = DCBFD_CLOSED;
LOGIF(LD, (skygw_log_write_flush( LOGIF(LD, (skygw_log_write_flush(
@ -1926,7 +1924,7 @@ dcb_close_finish(DCB *dcb)
* threw away return value. * threw away return value.
*/ */
LOGIF(LD, (skygw_log_write( LOGIF(LD, (skygw_log_write(
LOGFILE_DEBUG," LOGFILE_DEBUG,
"%lu [dcb_close] Removed dcb %p in state %s from poll set.", "%lu [dcb_close] Removed dcb %p in state %s from poll set.",
pthread_self(), pthread_self(),
dcb, dcb,