I was wondering about 44 bytes from the beginning,
but only looking at a hexdump of the record
revealed where the last 20 bytes came from.
4 bytes alignment, 8 bytes tv_sec, 4 bytes tv_usec.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
struct cluster_level_globalB globalB = {
.version = version,
};
-#define CLUSTER_LEVEL_DB_VERSION_1_REC_SIZE 44
+#define CLUSTER_LEVEL_DB_VERSION_1_REC_SIZE 28
uint8_t fixed_buf[CLUSTER_LEVEL_DB_VERSION_1_REC_SIZE] = {};
DATA_BLOB fixed_blob = {
.data = fixed_buf,
} cluster_level_db_version;
typedef struct {
- timeval_legacy update_time;
+ timeval update_time;
cluster_level_active active_level;
} cluster_level_global1;
const string CLUSTER_LEVEL_GLOBAL_KEY = "CLUSTER_LEVEL_GLOBAL";
typedef struct {
- timeval_legacy update_time;
- timeval_legacy ctdbd_start_time;
+ timeval update_time;
+ timeval ctdbd_start_time;
uint32 ctdbd_pid;
cluster_level_ranges supported_ranges;
} cluster_level_node1;