diff options
-rw-r--r-- | app/web_hub.go | 4 | ||||
-rw-r--r-- | store/sql_supplier.go | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/app/web_hub.go b/app/web_hub.go index 0af73f39f..0faa5fc5b 100644 --- a/app/web_hub.go +++ b/app/web_hub.go @@ -27,8 +27,10 @@ const ( ) type Hub struct { - connections []*WebConn + // connectionCount should be kept first. + // See https://github.com/mattermost/platform/pull/7281 connectionCount int64 + connections []*WebConn connectionIndex int register chan *WebConn unregister chan *WebConn diff --git a/store/sql_supplier.go b/store/sql_supplier.go index 442c55ce9..53153d911 100644 --- a/store/sql_supplier.go +++ b/store/sql_supplier.go @@ -83,12 +83,14 @@ type SqlSupplierOldStores struct { } type SqlSupplier struct { + // rrCounter and srCounter should be kept first. + // See https://github.com/mattermost/platform/pull/7281 + rrCounter int64 + srCounter int64 next LayeredStoreSupplier master *gorp.DbMap replicas []*gorp.DbMap searchReplicas []*gorp.DbMap - rrCounter int64 - srCounter int64 oldStores SqlSupplierOldStores } |