From d57e6808cc17535086f9b8110960ecab8481c37d Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 26 Jun 2016 13:40:51 +0000 Subject: [PATCH] lib/db: Fix alignment crash on 32 bit platforms Fixes #3347 Fixes #3348 Fixes #3349 GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3350 --- lib/db/leveldb_dbinstance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db/leveldb_dbinstance.go b/lib/db/leveldb_dbinstance.go index 4281bdf9..bf762185 100644 --- a/lib/db/leveldb_dbinstance.go +++ b/lib/db/leveldb_dbinstance.go @@ -29,10 +29,10 @@ import ( type deletionHandler func(t readWriteTransaction, folder, device, name []byte, dbi iterator.Iterator) int64 type Instance struct { + committed int64 // this must be the first attribute in the struct to ensure 64 bit alignment on 32 bit plaforms *leveldb.DB folderIdx *smallIndex deviceIdx *smallIndex - committed int64 } const (