GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix 32-bit ARM compatibility issue (#661) · neo4j/neo4j-go-driver@0b989f4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • neo4j/internal/pool
    • pool.go
    • ssr_tracker.go
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎neo4j/internal/pool/pool.go‎

Copy file name to clipboardExpand all lines: neo4j/internal/pool/pool.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ package pool
2323
import (
2424
"container/list"
2525
"context"
26-
"github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/homedb"
2726
"math"
2827
"sort"
2928
"sync"
@@ -34,6 +33,7 @@ import (
3433
"github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/bolt"
3534
idb "github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/db"
3635
"github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/errorutil"
36+
"github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/homedb"
3737
itime "github.com/neo4j/neo4j-go-driver/v5/neo4j/internal/time"
3838
"github.com/neo4j/neo4j-go-driver/v5/neo4j/log"
3939
)
@@ -66,7 +66,7 @@ type Pool struct {
6666
log log.Logger
6767
logId string
6868
cache *homedb.Cache
69-
ssrTracker ssrTracker
69+
ssrTracker *ssrTracker
7070
}
7171

7272
type serverPenalty struct {
@@ -87,7 +87,7 @@ func New(config *config.Config, connect Connect, logger log.Logger, logId string
8787
logId: logId,
8888
log: logger,
8989
cache: cache,
90-
ssrTracker: ssrTracker{},
90+
ssrTracker: &ssrTracker{},
9191
}
9292
p.log.Infof(log.Pool, p.logId, "Created")
9393
return p
Collapse file

‎neo4j/internal/pool/ssr_tracker.go‎

Copy file name to clipboardExpand all lines: neo4j/internal/pool/ssr_tracker.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ type ssrTracker struct {
3030

3131
func (s *ssrTracker) addConnection(c idb.Connection) {
3232
if c.IsSsrEnabled() {
33-
atomic.AddUint64(&s.ssrEnabledCount, ^uint64(0))
33+
atomic.AddUint64(&s.ssrEnabledCount, 1)
3434
} else {
35-
atomic.AddUint64(&s.ssrDisabledCount, ^uint64(0))
35+
atomic.AddUint64(&s.ssrDisabledCount, 1)
3636
}
3737
}
3838

3939
func (s *ssrTracker) removeConnection(c idb.Connection) {
4040
if c.IsSsrEnabled() {
41-
atomic.AddUint64(&s.ssrEnabledCount, 1)
41+
atomic.AddUint64(&s.ssrEnabledCount, ^uint64(0))
4242
} else {
43-
atomic.AddUint64(&s.ssrDisabledCount, 1)
43+
atomic.AddUint64(&s.ssrDisabledCount, ^uint64(0))
4444
}
4545
}
4646

0 commit comments

Comments
0 (0)
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.