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
ecf3404b
Commit
ecf3404b
authored
Mar 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a2d9768e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+6
-3
No files found.
wcfs/client/wcfs.cpp
View file @
ecf3404b
...
...
@@ -1184,7 +1184,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
_Mapping
*
mmap
=
this
;
FileH
f
=
mmap
->
fileh
;
xerr
::
Contextf
E
(
"
%s: %s: %s: remmapblk #%ld @%s"
,
v
(
f
->
wconn
),
v
(
f
),
v
(
mmap
)
,
blk
,
v
(
at
));
xerr
::
Contextf
E
(
"
_remmapblk #%ld @%s"
,
blk
,
v
(
at
));
etrace
(
""
);
ASSERT
(
mmap
->
blk_start
<=
blk
&&
blk
<
mmap
->
blk_stop
());
...
...
@@ -1254,6 +1254,9 @@ error _Mapping::remmap_blk(int64_t blk) {
f
->
wconn
->
_atMu
.
RUnlock
();
});
xerr
::
Contextf
E
(
"%s: %s: %s: remmapblk #%ld"
,
v
(
f
->
wconn
),
v
(
f
),
v
(
mmap
),
blk
);
etrace
(
""
);
if
(
!
(
mmap
.
blk_start
<=
blk
&&
blk
<
mmap
.
blk_stop
()))
panic
(
"remmap_blk: blk out of Mapping range"
);
...
...
@@ -1261,7 +1264,7 @@ error _Mapping::remmap_blk(int64_t blk) {
// remmap base-layer blk memory in its place again, we reinject efault into it.
if
(
mmap
.
efaulted
)
{
log
::
Warnf
(
"%s: remmapblk called for already-efaulted mapping"
,
v
(
mmap
));
return
mmap
.
__remmapBlkAsEfault
(
blk
);
// TODO recheck errctx
return
E
(
mmap
.
__remmapBlkAsEfault
(
blk
));
}
// blkrev = rev | @head
...
...
@@ -1272,7 +1275,7 @@ error _Mapping::remmap_blk(int64_t blk) {
err
=
mmap
.
_remmapblk
(
blk
,
blkrev
);
if
(
err
!=
nil
)
return
err
;
// errctx is good in _remmapblk
return
E
(
err
);
return
nil
;
}
...
...
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