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
554500a0
Commit
554500a0
authored
Apr 22, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5db40e09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
wcfs/wcfs.go
wcfs/wcfs.go
+9
-9
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+1
-1
No files found.
wcfs/wcfs.go
View file @
554500a0
...
...
@@ -539,11 +539,11 @@ type BigFile struct {
size
int64
// zfile.Size()
rev
zodb
.
Tid
// last revision that modified zfile data
// tail change history of this file.
//
// XXX computationally expensive to start - see "Invalidations to wcfs
// clients are delayed ..." in notes.txt
δtail
*
ΔTailI64
// [](rev↑, []#blk)
//
// tail change history of this file.
//
//
//
// XXX computationally expensive to start - see "Invalidations to wcfs
//
// clients are delayed ..." in notes.txt
//
δtail *ΔTailI64 // [](rev↑, []#blk)
// inflight loadings of ZBigFile from ZODB.
// successful load results are kept here until blkdata is put into OS pagecache.
...
...
@@ -823,9 +823,9 @@ retry:
wg
,
ctx
:=
errgroup
.
WithContext
(
context
.
TODO
())
// XXX ctx = ?
for
file
,
δfile
:=
range
δF
.
ByFile
{
// XXX needed?
// XXX even though δBtail is complete, not all ZBlk are present here
file
.
δtail
.
Append
(
δF
.
Rev
,
δfile
.
Blocks
.
Elements
())
//
// XXX needed?
//
// XXX even though δBtail is complete, not all ZBlk are present here
//
file.δtail.Append(δF.Rev, δfile.Blocks.Elements())
file
:=
file
for
blk
:=
range
δfile
.
Blocks
{
...
...
@@ -1772,7 +1772,7 @@ 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
())
//
f.δtail = NewΔTailI64(zconn.At())
}
return
f
,
nil
...
...
wcfs/wcfs_test.py
View file @
554500a0
...
...
@@ -382,7 +382,7 @@ class tWatch:
t
.
_acceptq
=
chan
()
# (stream, msg) server originated messages go here
t
.
_rxmu
=
threading
.
Lock
()
t
.
_rxtab
=
{}
# stream -> rxq server replies go via here
t
.
_accepted
=
set
()
# of stream streams we accpted but did not replied yet
t
.
_accepted
=
set
()
# of stream streams we acc
e
pted but did not replied yet
t
.
_txmu
=
threading
.
Lock
()
# serializes writes
...
...
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