Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
06917531
Commit
06917531
authored
Sep 23, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move HighWaterMark to the top of the struct in order to fix arm, second time
parent
46197a5d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
controller_utils.go
pkg/controller/controller_utils.go
+2
-0
tunneler.go
pkg/genericapiserver/tunneler.go
+5
-2
cacher.go
pkg/storage/cacher.go
+7
-4
No files found.
pkg/controller/controller_utils.go
View file @
06917531
...
@@ -219,6 +219,8 @@ type Expectations interface {
...
@@ -219,6 +219,8 @@ type Expectations interface {
// ControlleeExpectations track controllee creates/deletes.
// ControlleeExpectations track controllee creates/deletes.
type
ControlleeExpectations
struct
{
type
ControlleeExpectations
struct
{
// Important: Since these two int64 fields are using sync/atomic, they have to be at the top of the struct due to a bug on 32-bit platforms
// See: https://golang.org/pkg/sync/atomic/ for more information
add
int64
add
int64
del
int64
del
int64
key
string
key
string
...
...
pkg/genericapiserver/tunneler.go
View file @
06917531
...
@@ -46,14 +46,17 @@ type Tunneler interface {
...
@@ -46,14 +46,17 @@ type Tunneler interface {
}
}
type
SSHTunneler
struct
{
type
SSHTunneler
struct
{
// Important: Since these two int64 fields are using sync/atomic, they have to be at the top of the struct due to a bug on 32-bit platforms
// See: https://golang.org/pkg/sync/atomic/ for more information
lastSync
int64
// Seconds since Epoch
lastSSHKeySync
int64
// Seconds since Epoch
SSHUser
string
SSHUser
string
SSHKeyfile
string
SSHKeyfile
string
InstallSSHKey
InstallSSHKey
InstallSSHKey
InstallSSHKey
HealthCheckURL
*
url
.
URL
HealthCheckURL
*
url
.
URL
tunnels
*
ssh
.
SSHTunnelList
tunnels
*
ssh
.
SSHTunnelList
lastSync
int64
// Seconds since Epoch
lastSSHKeySync
int64
// Seconds since Epoch
lastSyncMetric
prometheus
.
GaugeFunc
lastSyncMetric
prometheus
.
GaugeFunc
clock
clock
.
Clock
clock
clock
.
Clock
...
...
pkg/storage/cacher.go
View file @
06917531
...
@@ -130,6 +130,13 @@ func (i *indexedWatchers) terminateAll(objectType reflect.Type) {
...
@@ -130,6 +130,13 @@ func (i *indexedWatchers) terminateAll(objectType reflect.Type) {
// Cacher implements storage.Interface (although most of the calls are just
// Cacher implements storage.Interface (although most of the calls are just
// delegated to the underlying storage).
// delegated to the underlying storage).
type
Cacher
struct
{
type
Cacher
struct
{
// HighWaterMarks for performance debugging.
// Important: Since HighWaterMark is using sync/atomic, it has to be at the top of the struct due to a bug on 32-bit platforms
// See: https://golang.org/pkg/sync/atomic/ for more information
incomingHWM
HighWaterMark
// Incoming events that should be dispatched to watchers.
incoming
chan
watchCacheEvent
sync
.
RWMutex
sync
.
RWMutex
// Before accessing the cacher's cache, wait for the ready to be ok.
// Before accessing the cacher's cache, wait for the ready to be ok.
...
@@ -164,10 +171,6 @@ type Cacher struct {
...
@@ -164,10 +171,6 @@ type Cacher struct {
watcherIdx
int
watcherIdx
int
watchers
indexedWatchers
watchers
indexedWatchers
// Incoming events that should be dispatched to watchers.
incoming
chan
watchCacheEvent
incomingHWM
HighWaterMark
// Handling graceful termination.
// Handling graceful termination.
stopLock
sync
.
RWMutex
stopLock
sync
.
RWMutex
stopped
bool
stopped
bool
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment