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
0d7a0fa0
Commit
0d7a0fa0
authored
May 19, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
372fab58
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
10 deletions
+17
-10
test.sh
test.sh
+1
-1
wcfs/internal/xbtree/treediff.go
wcfs/internal/xbtree/treediff.go
+0
-7
wcfs/internal/xbtree/xbtree.go
wcfs/internal/xbtree/xbtree.go
+11
-0
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+4
-1
wcfs/wcfs.go
wcfs/wcfs.go
+1
-1
No files found.
test.sh
View file @
0d7a0fa0
...
...
@@ -6,7 +6,7 @@ X=$(cd `dirname $0` && pwd)
# rebuild everything
if
test
-z
"
$qrun_loglevel
"
;
then
make
-C
$X
--no-print-directory
(
cd
$X
&&
make
)
fi
# respawn ourself under qemu-runlinux, if asked.
...
...
wcfs/internal/xbtree/treediff.go
View file @
0d7a0fa0
...
...
@@ -933,10 +933,3 @@ func vnode(node Node) string {
}
return
kind
+
node
.
POid
()
.
String
()
}
const
debug
=
false
func
tracef
(
format
string
,
argv
...
interface
{})
{
if
debug
{
fmt
.
Printf
(
format
,
argv
...
)
}
}
wcfs/internal/xbtree/xbtree.go
View file @
0d7a0fa0
...
...
@@ -4,6 +4,7 @@ package xbtree
import
(
"fmt"
"math"
"lab.nexedi.com/kirr/neo/go/zodb"
...
...
@@ -31,3 +32,13 @@ const VDEL = zodb.InvalidOid
type
SetKey
=
set
.
SetI64
type
SetOid
=
set
.
SetOid
const
debug
=
true
func
tracef
(
format
string
,
argv
...
interface
{})
{
if
debug
{
fmt
.
Printf
(
format
,
argv
...
)
}
}
wcfs/internal/xbtree/δbtail.go
View file @
0d7a0fa0
...
...
@@ -397,7 +397,10 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
defer
xerr
.
Contextf
(
&
err
,
"ΔBtail update %s -> %s"
,
headOld
,
δZ
.
Tid
)
// update .trackSet and vδB from .trackNew
δBtail
.
rebuild
()
err
=
δBtail
.
rebuild
()
if
err
!=
nil
{
return
ΔB
{},
err
}
tracef
(
"Update @%s -> @%s
\n
"
,
δBtail
.
Head
(),
δZ
.
Tid
)
tracef
(
"δZ:
\t
%v
\n
"
,
δZ
.
Changev
)
...
...
wcfs/wcfs.go
View file @
0d7a0fa0
...
...
@@ -880,7 +880,7 @@ retry:
return
err
}
if
!
log
.
V
(
2
)
{
if
log
.
V
(
2
)
{
// debug dump δF
log
.
Infof
(
"
\n\n
S: handleδZ: δF (#%d):
\n
"
,
len
(
δF
.
ByFile
))
for
zfile
,
δfile
:=
range
δF
.
ByFile
{
...
...
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