Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
afe3cd61
Commit
afe3cd61
authored
Jul 06, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9bec71f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
go/zodb/cache_test.go
go/zodb/cache_test.go
+2
-2
go/zodb/connection.go
go/zodb/connection.go
+1
-1
go/zodb/zodb.go
go/zodb/zodb.go
+1
-1
No files found.
go/zodb/cache_test.go
View file @
afe3cd61
// Copyright (C) 2017-20
19
Nexedi SA and Contributors.
// Copyright (C) 2017-20
20
Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
...
...
@@ -655,7 +655,7 @@ func benchLoad(b *testing.B, l Loader, worksize int) {
benchLoadN
(
b
,
b
.
N
,
l
,
worksize
)
}
// worker for benchLoad, with n overrid
d
ing b.N
// worker for benchLoad, with n overriding b.N
func
benchLoadN
(
b
*
testing
.
B
,
n
int
,
l
Loader
,
worksize
int
)
{
ctx
:=
context
.
Background
()
...
...
go/zodb/connection.go
View file @
afe3cd61
...
...
@@ -254,7 +254,7 @@ func (cache *LiveCache) setNew(oid Oid, obj IPersistent) {
// XXX assert .objtab[oid] == nil ?
}
else
{
cache
.
objtab
[
oid
]
=
weak
.
NewRef
(
obj
)
// XXX asse
er
.pinned[oid] == nil ?
// XXX asse
rt
.pinned[oid] == nil ?
}
}
...
...
go/zodb/zodb.go
View file @
afe3cd61
...
...
@@ -82,7 +82,7 @@
//
// obj.xxx // use object.
// if ... {
// obj.PModify() // let persistency layer know we are going to modif
i
y the object.
// obj.PModify() // let persistency layer know we are going to modify the object.
// obj.xxx++ // change the object.
// }
//
...
...
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