Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#undef NO_ATOMIC_OPS

typedef _Atomic(unsigned long) atomic_t;
typedef _Atomic(_Bool) atomic_bool_t;
#else /* HAVE_STDATOMIC */

/************************* i386 & x86_64 ARCH ****************************/
Expand Down Expand Up @@ -72,6 +73,7 @@ typedef _Atomic(unsigned long) atomic_t;
* not some alias that contains the same information.
*/
typedef struct { volatile unsigned int counter; } atomic_t;
typedef atomic_t atomic_bool_t;

/*! \brief
* atomic_add - add integer to atomic variable
Expand Down Expand Up @@ -141,6 +143,7 @@ static __inline__ void atomic_dec(atomic_t *v)
* not some alias that contains the same information.
*/
typedef struct { volatile unsigned long counter; } atomic_t;
typedef atomic_t atomic_bool_t;

/*! \brief
* atomic_set - set atomic variable
Expand Down
12 changes: 11 additions & 1 deletion modules/sql_cacher/README
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,15 @@ Chapter 1. Admin Guide
* expire : expire period for the values stored in the cache
for the on demand caching type in seconds
If not present, default value is “1 hour”
* full_caching_lock_scope : whether to lock reading from the cache
when loading the table into the cache on a row or table basis
with it set to “table” large tables writing into the cache can
block reads when reading an sql_cached_value from that table
stalling the SIP processing but ensures full table consistency,
“row” allows reads during writing on rows not currently being written to.
+ row
+ table
If not present, default value is “row”

The parameters must be given in the exact order specified
above.
Expand All @@ -164,7 +173,8 @@ cachedb_url=mongodb:mycluster://127.0.0.1:27017/db.col
table=table_name
key=column_name_0
columns=column_name_1 column_name_2 column_name_3
on_demand=0")
on_demand=0
full_caching_lock_scope=row")


1.3.2. spec_delimiter (string)
Expand Down
Loading
Loading