Browse Source

ckdb - store doesn't need a copy of the list lock

master
kanoi 9 years ago
parent
commit
1552a7d92d
  1. 2
      src/ckdb.h
  2. 2
      src/klist.c

2
src/ckdb.h

@ -51,7 +51,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.4" #define DB_VERSION "1.0.4"
#define CKDB_VERSION DB_VERSION"-1.900" #define CKDB_VERSION DB_VERSION"-1.901"
#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__

2
src/klist.c

@ -145,7 +145,7 @@ K_STORE *_k_new_store(K_LIST *list, KLIST_FFL_ARGS)
store->master = list; store->master = list;
store->is_store = true; store->is_store = true;
store->lock = list->lock; store->lock = NULL;
store->name = list->name; store->name = list->name;
store->do_tail = list->do_tail; store->do_tail = list->do_tail;
list->stores++; list->stores++;

Loading…
Cancel
Save