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
559dc9bf
Commit
559dc9bf
authored
May 09, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d0ecdf0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
wcfs/wcfs.go
wcfs/wcfs.go
+2
-1
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+13
-4
No files found.
wcfs/wcfs.go
View file @
559dc9bf
...
...
@@ -1828,7 +1828,8 @@ func (head *Head) bigopen(ctx context.Context, oid zodb.Oid) (_ *BigFile, err er
head
.
bfdir
.
δFtail
.
Track
(
f
,
-
1
,
sizePath
,
nil
)
head
.
bfdir
.
δFmu
.
Unlock
()
// f.δtail = NewΔTailI64(zconn.At())
// FIXME: scan zfile.blktab - so that we can detect all btree changes
// see "XXX building δFtail lazily ..." in notes.txt
}
return
f
,
nil
...
...
wcfs/wcfs_test.py
View file @
559dc9bf
...
...
@@ -296,6 +296,16 @@ class tDB:
return
"@at%d (%s)"
%
(
i
,
h
(
at
))
# zfiles returns ZBigFiles that were ever changed under t.
def
zfiles
(
t
):
zfs
=
set
()
for
dF
in
t
.
dFtail
:
for
zf
in
dF
.
byfile
:
if
zf
not
in
zfs
:
zfs
.
add
(
zf
)
return
zfs
# tFile provides testing environment for one bigfile on wcfs.
#
...
...
@@ -702,7 +712,7 @@ def test_wcfs():
# checkSetupWatch verifies setting up new watch for zf@at.
def
checkSetupWatch
(
zf
,
at
):
print
(
'C: check setup watch f<%s> %s'
%
(
h
(
zf
.
_p_oid
),
t
.
hat
(
at
)))
print
(
'
\
n
C: check setup watch f<%s> %s'
%
(
h
(
zf
.
_p_oid
),
t
.
hat
(
at
)))
# all changes to zf
vdf
=
[
_
.
byfile
[
zf
]
for
_
in
t
.
dFtail
if
zf
in
_
.
byfile
]
...
...
@@ -744,9 +754,8 @@ def test_wcfs():
wg
.
wait
()
# XXX for zf: check all revisions, even if zf was not changed in rev
for
zf
in
t
.
zfiles
():
for
dF
in
t
.
dFtail
:
for
zf
in
dF
.
byfile
:
checkSetupWatch
(
zf
,
dF
.
rev
)
...
...
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