From 7f18a3ca2239702294d74f18b29f8cd5c753a53b Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 11 Apr 2014 11:12:17 -0700 Subject: [PATCH] consul: Fix a 64bit alignment issue for x86-32 --- consul/mdb_table.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consul/mdb_table.go b/consul/mdb_table.go index eeead56c34..c710e96ce2 100644 --- a/consul/mdb_table.go +++ b/consul/mdb_table.go @@ -29,14 +29,14 @@ const ( using a row id, while maintaining any number of secondary indexes. */ type MDBTable struct { + // Last used rowID. Must be first to avoid 64bit alignment issues. + lastRowID uint64 + Env *mdb.Env Name string // This is the name of the table, must be unique Indexes map[string]*MDBIndex Encoder func(interface{}) []byte Decoder func([]byte) interface{} - - // Last used rowID - lastRowID uint64 } // MDBTables is used for when we have a collection of tables