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
bc4bb76c
Commit
bc4bb76c
authored
Jun 10, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f125140a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
wcfs/wcfs.go
wcfs/wcfs.go
+1
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+8
-2
No files found.
wcfs/wcfs.go
View file @
bc4bb76c
...
...
@@ -1178,7 +1178,7 @@ func (f *BigFile) updateWatchers(ctx context.Context, blk int64, treepath []btre
return
}
fmt
.
Printf
(
"S: read
-> update watchers (#%d)
\n
"
,
len
(
f
.
watches
))
fmt
.
Printf
(
"S: read
#%d -> update watchers (#%d)
\n
"
,
blk
,
len
(
f
.
watches
))
// update δFtail index
bfdir
:=
f
.
head
.
bfdir
...
...
wcfs/wcfs_test.py
View file @
bc4bb76c
...
...
@@ -540,7 +540,7 @@ class tFile:
shouldPin
=
False
# whether at least one wlink should receive a pin
# watches must be notified if access goes to @head/file; not if to @rev/file. XXX text
wpin
=
{}
# tWatchLink ->
(zf, pinok)
wpin
=
{}
# tWatchLink ->
pinok
for
wlink
in
t
.
tdb
.
_wlinks
:
pinok
=
{}
if
t
.
at
is
None
:
# @head/...
...
...
@@ -1190,10 +1190,16 @@ def test_wcfs():
f
.
assertCache
([
1
,
1
,
0
,
1
,
0
,
0
])
# FIXME a must be invalidated - see δbtree ^^^
f
.
assertBlk
(
2
,
'4c'
,
{
wl
:
{
2
:
at3
}})
f
.
assertBlk
(
5
,
'4f'
,
{
wl
:
{
5
:
at0
}})
# XXX at0 -> ø
print
(
'000'
)
# blk4 is hole @head - the same as at earlier db view XXX or do not allow hole past .size ?
f
.
assertBlk
(
4
,
''
,
{
wl
:
{}})
print
(
'AAA'
)
f
.
assertBlk
(
5
,
'4f'
,
{
wl
:
{
5
:
at0
}})
# XXX at0 -> ø XXX also triggers access to #4 ?
# XXX 0, {0, at3} after δbtree works
print
(
'BBB'
)
wl
.
close
()
print
(
'CCC'
)
# XXX commit after current file size -> watch
...
...
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