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
96b16e82
Commit
96b16e82
authored
Feb 17, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
645de4fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
bigfile/file_zodb.cpp
bigfile/file_zodb.cpp
+1
-1
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+2
-1
No files found.
bigfile/file_zodb.cpp
View file @
96b16e82
...
...
@@ -39,7 +39,7 @@ static void* zfile_mmap_setup_read(VMA *vma, BigFile *file, blk_t blk, size_t bl
tie
(
mmap
,
err
)
=
fileh
->
mmap
(
blk
,
blklen
,
vma
);
if
(
err
!=
nil
)
panic
(
"TODO"
);
// XXX
panic
(
v
(
err
)
);
// XXX
return
(
void
*
)
vma
->
addr_start
;
// XXX (?) kill - we set vma->addr_*
}
...
...
wcfs/client/wcfs.cpp
View file @
96b16e82
...
...
@@ -170,7 +170,7 @@ error _Conn::_pinner(context::Context ctx) {
error
err
=
wconn
.
__pinner
(
ctx
);
// if pinner fails, wcfs will kill us.
// log pinner error so the error is not hidden.
// log pinner error so th
at th
e error is not hidden.
// print to stderr as well as by default log does not print to there.
// XXX also catch panic/exc ?
if
(
!
(
err
==
nil
||
errors
::
Is
(
err
,
context
::
canceled
)))
{
// canceled = .close asks pinner to stop
...
...
@@ -242,6 +242,7 @@ error _Conn::__pin1(PinReq *req) {
FileH
f
;
bool
ok
;
wconn
.
_filehmu
.
lock
();
// XXX +incref f, so that simultaneous close does not remove f from wconn.filehTab ?
tie
(
f
,
ok
)
=
wconn
.
_filehtab
.
get_
(
req
->
foid
);
if
(
!
ok
)
{
wconn
.
_filehmu
.
unlock
();
...
...
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