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
bcd4aed8
Commit
bcd4aed8
authored
Apr 21, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b4137415
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
18 deletions
+4
-18
wcfs/wcfs.go
wcfs/wcfs.go
+0
-16
wcfs/δftail.go
wcfs/δftail.go
+4
-2
No files found.
wcfs/wcfs.go
View file @
bcd4aed8
...
...
@@ -1046,22 +1046,6 @@ func (f *BigFile) invalidateBlk(ctx context.Context, blk int64) (err error) {
if
int64
(
len
(
blkdata
))
==
blksize
{
func
()
{
// store retrieved data back to OS cache for file @<rev>/file[blk]
//
// XXX there is deadlock here:
//
// T1: Lookup "head"
// -> nodefs.rawBridge.lookupLock.Lock
// -> zheadMu.RLock
// `-> block (waiting for handleδZ to WUnlock zheadMu)
//
// T2 (this thread): Lookup "@<revX>"
// -> nodefs.rawBridge.lookupLock.Lock
// `-> block (waiting for T1)
//
// see https://github.com/hanwen/go-fuse/commit/d0fca860
// for when rawBridge.lookupLock was introduced.
//
// -> should be fixed: https://review.gerrithub.io/c/hanwen/go-fuse/+/487809
blkrev
,
_
:=
f
.
LastBlkRev
(
ctx
,
blk
,
f
.
head
.
zconn
.
At
())
frev
,
funlock
,
err
:=
groot
.
lockRevFile
(
blkrev
,
f
.
zfile
.
POid
())
if
err
!=
nil
{
...
...
wcfs/δftail.go
View file @
bcd4aed8
...
...
@@ -64,11 +64,11 @@ import (
//
// XXX concurrent use
//
//
XXX s
ee also zodb.ΔTail
//
S
ee also zodb.ΔTail
type
ΔFtail
struct
{
// ΔFtail merges btree.ΔTail with history of ZBlk
δBtail
*
ΔBtail
fileIdx
map
[
*
btree
.
LOBTree
]
SetBigFile
// root -> {} BigFile
XXX root -> oi
d?
fileIdx
map
[
*
btree
.
LOBTree
]
SetBigFile
// root -> {} BigFile
XXX root -> oid? XXX as of @hea
d?
// data with δF changes. Actual for part of tracked set that was taken
// into account.
...
...
@@ -191,6 +191,8 @@ func (δFtail *ΔFtail) Track(file *BigFile, blk int64, path []btree.LONode, zbl
// Objects in Zhead must not be modified.
// During call to Update zhead must not be otherwise used - even for reading.
func
(
δFtail
*
ΔFtail
)
Update
(
δZ
*
zodb
.
EventCommit
,
zhead
*
ZConn
)
ΔF
{
// XXX δFtail.update() first?
δB
:=
δFtail
.
δBtail
.
Update
(
δZ
)
δF
:=
ΔF
{
Rev
:
δB
.
Rev
,
ByFile
:
make
(
map
[
*
BigFile
]
*
ΔFile
)}
...
...
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