summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-07-31 20:49:52 +0300
committerNiels de Vos <ndevos@redhat.com>2018-08-22 13:34:12 +0000
commit443aa8e582f0dd5c4df916c0240eee3c0b56fe3f (patch)
treec9e93fbd3ce94161c84fda735bbc444d815d206c
parent183aca0e20a2cf2923a2f56352ffa2cefb49afcc (diff)
dict.c: align dictionary structures
Change-Id: Ib7250b3ff11a7ab98b578c0663dc1817624b8df1 updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
-rw-r--r--libglusterfs/src/dict.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/libglusterfs/src/dict.h b/libglusterfs/src/dict.h
index 52b6c8c62fe..4c204d6c037 100644
--- a/libglusterfs/src/dict.h
+++ b/libglusterfs/src/dict.h
@@ -68,13 +68,13 @@ typedef struct _data_pair data_pair_t;
#define DICT_FLAG_CLEAR 0
struct _data {
- unsigned char is_static:1;
- unsigned char is_const:1;
- int32_t len;
char *data;
gf_atomic_t refcount;
gf_lock_t lock;
gf_dict_data_type_t data_type;
+ int32_t len;
+ unsigned char is_static:1;
+ unsigned char is_const:1;
};
struct _data_pair {
@@ -87,7 +87,7 @@ struct _data_pair {
};
struct _dict {
- unsigned char is_static:1;
+ uint64_t max_count;
int32_t hash_size;
int32_t count;
gf_atomic_t refcount;
@@ -99,7 +99,7 @@ struct _dict {
data_pair_t *members_internal;
data_pair_t free_pair;
gf_boolean_t free_pair_in_use;
- uint64_t max_count;
+ unsigned char is_static:1;
};
typedef gf_boolean_t (*dict_match_t) (dict_t *d, char *k, data_t *v,