Skip to content

Commit

Permalink
WT-12787 Define function FLD_AREALLSET() whether TSAN or not (#10453)
Browse files Browse the repository at this point in the history
  • Loading branch information
tod-johnson-mongodb committed Apr 4, 2024
1 parent b63ea1d commit cba8276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/s_define.list
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ CURSOR_UPDATE_API_END_RETRY
EXTRA_DIAGNOSTICS_ENABLED
FLD_MASK
JOINABLE_CURSOR_CALL_CHECK
LF_AREALLSSET
LF_AREALLSET
LF_MASK
LLONG_MAX
LLONG_MIN
Expand Down
4 changes: 2 additions & 2 deletions src/include/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@
#define FLD_MASK(field, mask) ((field) & (mask))
#define FLD_ISSET(field, mask) (FLD_MASK(field, mask) != 0)
#define FLD_SET(field, mask) ((void)((field) |= (mask)))
#endif
/* Named like a macro for consistency. An inline function to evaluate mask only once. */
static inline bool
FLD_AREALLSET(uint64_t field, uint64_t mask)
{
return (FLD_MASK(field, mask) == mask);
}
#endif

#define F_CLR(p, mask) FLD_CLR((p)->flags, mask)
#define F_ISSET(p, mask) FLD_ISSET((p)->flags, mask)
Expand All @@ -243,7 +243,7 @@ FLD_AREALLSET(uint64_t field, uint64_t mask)
#define LF_ISSET(mask) FLD_ISSET(flags, mask)
#define LF_MASK(mask) FLD_MASK(flags, mask)
#define LF_SET(mask) FLD_SET(flags, mask)
#define LF_AREALLSSET(mask) FLD_AREALLSET(flags, mask)
#define LF_AREALLSET(mask) FLD_AREALLSET(flags, mask)

/*
* Insertion sort, for sorting small sets of values.
Expand Down

0 comments on commit cba8276

Please sign in to comment.