mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
don't use #pragma pack
include/waiting_threads.h: don't #pragma pack mysys/lf_hash.c: typo in a comment mysys/waiting_threads.c: use the size of data, not the size of (possibly padded) structure
This commit is contained in:
@@ -30,13 +30,11 @@ typedef struct st_wt_resource_type {
|
||||
const void *(*make_key)(WT_RESOURCE_ID *id, uint *len);
|
||||
} WT_RESOURCE_TYPE;
|
||||
|
||||
/* we want to compare this struct with memcmp, make it packed */
|
||||
#pragma pack(1)
|
||||
struct st_wt_resource_id {
|
||||
ulonglong value;
|
||||
WT_RESOURCE_TYPE *type;
|
||||
};
|
||||
#pragma pack()
|
||||
#define sizeof_WT_RESOURCE_ID (sizeof(ulonglong)+sizeof(void*))
|
||||
|
||||
#define WT_WAIT_STATS 24
|
||||
#define WT_CYCLE_STATS 32
|
||||
|
Reference in New Issue
Block a user