Browse Source

ckdb - prioritise workinfo processing

master
kanoi 8 years ago
parent
commit
f96cf93aa6
  1. 6
      src/ckdb.c
  2. 2
      src/ckdb.h

6
src/ckdb.c

@ -4557,7 +4557,11 @@ static void *breaker(void *arg)
pthread_cond_signal(&process_reload_waitcond); pthread_cond_signal(&process_reload_waitcond);
mutex_unlock(&process_reload_waitlock); mutex_unlock(&process_reload_waitlock);
} else { } else {
k_add_tail(cmd_done_breakqueue_store, bq_item); // Prioritise workinfo processing
if (bq->cmdnum == CMD_WORKINFO)
k_add_head(cmd_done_breakqueue_store, bq_item);
else
k_add_tail(cmd_done_breakqueue_store, bq_item);
mutex_lock(&process_socket_waitlock); mutex_lock(&process_socket_waitlock);
process_socket_signals++; process_socket_signals++;
pthread_cond_signal(&process_socket_waitcond); pthread_cond_signal(&process_socket_waitcond);

2
src/ckdb.h

@ -58,7 +58,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.7" #define DB_VERSION "1.0.7"
#define CKDB_VERSION DB_VERSION"-2.437" #define CKDB_VERSION DB_VERSION"-2.438"
#define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

Loading…
Cancel
Save