Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
37fc8ed9
Commit
37fc8ed9
authored
Aug 17, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. (some staticcheck)
parent
6ad0052c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
5 deletions
+4
-5
wcfs/internal/xbtree/blib/pptreesubset.go
wcfs/internal/xbtree/blib/pptreesubset.go
+1
-1
wcfs/internal/xbtree/blib/rangeset.go
wcfs/internal/xbtree/blib/rangeset.go
+1
-1
wcfs/internal/xbtree/xbtreetest/treeenv.go
wcfs/internal/xbtree/xbtreetest/treeenv.go
+1
-1
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+0
-1
wcfs/wcfs.go
wcfs/wcfs.go
+1
-1
No files found.
wcfs/internal/xbtree/blib/pptreesubset.go
View file @
37fc8ed9
...
@@ -362,7 +362,7 @@ func (S PPTreeSubSet) verify() {
...
@@ -362,7 +362,7 @@ func (S PPTreeSubSet) verify() {
}
}
defer
func
()
{
defer
func
()
{
if
badv
!=
nil
{
if
badv
!=
nil
{
emsg
:=
fmt
.
Sprintf
(
"S.verify: fail:
\n\n
"
)
emsg
:=
"S.verify: fail:
\n\n
"
for
_
,
bad
:=
range
badv
{
for
_
,
bad
:=
range
badv
{
emsg
+=
fmt
.
Sprintf
(
"- %s
\n
"
,
bad
)
emsg
+=
fmt
.
Sprintf
(
"- %s
\n
"
,
bad
)
}
}
...
...
wcfs/internal/xbtree/blib/rangeset.go
View file @
37fc8ed9
...
@@ -305,7 +305,7 @@ func (S *RangedKeySet) verify() {
...
@@ -305,7 +305,7 @@ func (S *RangedKeySet) verify() {
}
}
defer
func
()
{
defer
func
()
{
if
badv
!=
nil
{
if
badv
!=
nil
{
emsg
:=
fmt
.
Sprintf
(
"S.verify: fail:
\n\n
"
)
emsg
:=
"S.verify: fail:
\n\n
"
for
_
,
bad
:=
range
badv
{
for
_
,
bad
:=
range
badv
{
emsg
+=
fmt
.
Sprintf
(
"- %s
\n
"
,
bad
)
emsg
+=
fmt
.
Sprintf
(
"- %s
\n
"
,
bad
)
}
}
...
...
wcfs/internal/xbtree/xbtreetest/treeenv.go
View file @
37fc8ed9
...
@@ -116,7 +116,7 @@ func NewT(t *testing.T) *T {
...
@@ -116,7 +116,7 @@ func NewT(t *testing.T) *T {
// control does not say we need the object to stay in the cache.
// control does not say we need the object to stay in the cache.
// XXX place
// XXX place
type
tZODBCacheEverything
struct
{}
type
tZODBCacheEverything
struct
{}
func
(
_
*
tZODBCacheEverything
)
PCacheClassify
(
_
zodb
.
IPersistent
)
zodb
.
PCachePolicy
{
func
(
*
tZODBCacheEverything
)
PCacheClassify
(
_
zodb
.
IPersistent
)
zodb
.
PCachePolicy
{
return
zodb
.
PCachePinObject
|
zodb
.
PCacheKeepState
return
zodb
.
PCachePinObject
|
zodb
.
PCacheKeepState
}
}
...
...
wcfs/internal/xbtree/δbtail_test.go
View file @
37fc8ed9
...
@@ -1574,7 +1574,6 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, tj *xbtreetest.C
...
@@ -1574,7 +1574,6 @@ func assertΔTtail(t *testing.T, subj string, δbtail *ΔBtail, tj *xbtreetest.C
vδToid
=
δTtail
.
vδT
vδToid
=
δTtail
.
vδT
}
}
l
=
len
(
vδToid
)
var
vat
[]
zodb
.
Tid
var
vat
[]
zodb
.
Tid
var
vδT
[]
map
[
Key
]
Δstring
var
vδT
[]
map
[
Key
]
Δstring
atPrev
:=
t0
.
At
atPrev
:=
t0
.
At
...
...
wcfs/wcfs.go
View file @
37fc8ed9
...
@@ -729,7 +729,7 @@ type blkPinState struct {
...
@@ -729,7 +729,7 @@ type blkPinState struct {
// from ZODB right after that.
// from ZODB right after that.
type
zodbCacheControl
struct
{}
type
zodbCacheControl
struct
{}
func
(
_
*
zodbCacheControl
)
PCacheClassify
(
obj
zodb
.
IPersistent
)
zodb
.
PCachePolicy
{
func
(
*
zodbCacheControl
)
PCacheClassify
(
obj
zodb
.
IPersistent
)
zodb
.
PCachePolicy
{
switch
obj
.
(
type
)
{
switch
obj
.
(
type
)
{
// don't let ZBlk*/ZData to pollute the cache
// don't let ZBlk*/ZData to pollute the cache
case
*
ZBlk0
:
case
*
ZBlk0
:
...
...
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