diff options
author | Sergei Golubchik <serg@mysql.com> | 2008-11-03 20:33:34 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2008-11-03 20:33:34 +0100 |
commit | f91219ed47604ac80c378bd917431fa42e4cb1d9 (patch) | |
tree | 6ed02d819c875200438461a38fdc8491b02c89db /include/waiting_threads.h | |
parent | ca4d512aa46df2f231940d20f1b94b8409a7c691 (diff) | |
download | mariadb-git-f91219ed47604ac80c378bd917431fa42e4cb1d9.tar.gz |
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
Diffstat (limited to 'include/waiting_threads.h')
-rw-r--r-- | include/waiting_threads.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/waiting_threads.h b/include/waiting_threads.h index 41828164d05..a5c22bbcbf1 100644 --- a/include/waiting_threads.h +++ b/include/waiting_threads.h @@ -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 |