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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
75953935
Commit
75953935
authored
Mar 20, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ac7488d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
wcfs/wcfs.go
wcfs/wcfs.go
+21
-9
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+2
-0
No files found.
wcfs/wcfs.go
View file @
75953935
...
...
@@ -488,10 +488,23 @@ type Watch struct {
type
Watcher
struct
{
sk
*
FileSock
// XXX
// fileTab: BigFile ->
// at
// pinned = ... XXX
// established file watchers.
// XXX in-progress - where?
// XXX locking?
fileTab
map
[
*
FileWatch
]
struct
{}
}
// FileWatch represents watching for 1 BigFile.
type
FileWatch
struct
{
link
*
Watcher
// link to client
file
*
BigFile
// XXX needed?
// XXX locking
// requested to be watched @at
at
zodb
.
Tid
// XXX pinned
}
// /(head|<rev>)/bigfile/ - served by BigFileDir.
...
...
@@ -538,11 +551,10 @@ type BigFile struct {
loadMu
sync
.
Mutex
loading
map
[
int64
]
*
blkLoadState
// #blk -> {... blkdata}
// XXX mappings where client(s) requested isolation guarantee
//mappings ... XXX -> watchers?
// watchers attached to this file
watchers
map
[
*
Watcher
]
struct
{}
// XXX already in "established" state (i.e. initial watch request was answered with "ok")
// XXX locking -> watchMu?
watchers
map
[
*
FileWatch
]
struct
{}
}
// blkLoadState represents a ZBlk load state/result.
...
...
@@ -556,7 +568,7 @@ type blkLoadState struct {
err
error
}
// -------- 3)
ZODB
invariant --------
// -------- 3)
Cache
invariant --------
// zodbCacheControl implements zodb.LiveCacheControl to tune ZODB to never evict
// LOBTree/LOBucket from live cache. We want to keep LOBTree/LOBucket always alive
...
...
wcfs/wcfs_test.py
View file @
75953935
...
...
@@ -613,6 +613,8 @@ def test_wcfs():
# XXX access to block not previously accessed but invalidated in ZODB
# XXX new watch request while previous watch request is in progress (over the same /head/watch handle)
def
test_wcfs_invproto
():
...
...
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