mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #1549 from vieux/fix_arm_unsafe
fix unsafe acces on arm
This commit is contained in:
commit
d72e368d40
1 changed files with 9 additions and 6 deletions
|
@ -24,6 +24,15 @@ const (
|
||||||
// NetworkDB instance drives the networkdb cluster and acts the broker
|
// NetworkDB instance drives the networkdb cluster and acts the broker
|
||||||
// for cluster-scoped and network-scoped gossip and watches.
|
// for cluster-scoped and network-scoped gossip and watches.
|
||||||
type NetworkDB struct {
|
type NetworkDB struct {
|
||||||
|
// The clocks MUST be the first things
|
||||||
|
// in this struct due to Golang issue #599.
|
||||||
|
|
||||||
|
// Global lamport clock for node network attach events.
|
||||||
|
networkClock serf.LamportClock
|
||||||
|
|
||||||
|
// Global lamport clock for table events.
|
||||||
|
tableClock serf.LamportClock
|
||||||
|
|
||||||
sync.RWMutex
|
sync.RWMutex
|
||||||
|
|
||||||
// NetworkDB configuration.
|
// NetworkDB configuration.
|
||||||
|
@ -59,12 +68,6 @@ type NetworkDB struct {
|
||||||
// waiting for an ack.
|
// waiting for an ack.
|
||||||
bulkSyncAckTbl map[string]chan struct{}
|
bulkSyncAckTbl map[string]chan struct{}
|
||||||
|
|
||||||
// Global lamport clock for node network attach events.
|
|
||||||
networkClock serf.LamportClock
|
|
||||||
|
|
||||||
// Global lamport clock for table events.
|
|
||||||
tableClock serf.LamportClock
|
|
||||||
|
|
||||||
// Broadcast queue for network event gossip.
|
// Broadcast queue for network event gossip.
|
||||||
networkBroadcasts *memberlist.TransmitLimitedQueue
|
networkBroadcasts *memberlist.TransmitLimitedQueue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue