Browse Source

ckdb - max_sockd counter must use locked access

master
kanoi 9 years ago
parent
commit
296e50f4bb
  1. 2
      src/ckdb.c
  2. 2
      src/ckdb.h

2
src/ckdb.c

@ -5656,9 +5656,9 @@ static void *socketer(void *arg)
copy_tv(&(bq->now), &now);
bq->seqentryflags = seqentryflags;
bq->sockd = sockd;
K_WLOCK(breakqueue_free);
if (max_sockd_count < ++sockd_count)
max_sockd_count = sockd_count;
K_WLOCK(breakqueue_free);
k_add_tail(cmd_breakqueue_store, bq_item);
K_WUNLOCK(breakqueue_free);
setnow(&now2);

2
src/ckdb.h

@ -52,7 +52,7 @@
#define DB_VLOCK "1"
#define DB_VERSION "1.0.5"
#define CKDB_VERSION DB_VERSION"-2.101"
#define CKDB_VERSION DB_VERSION"-2.102"
#define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save