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
5eed9093
Commit
5eed9093
authored
Mar 10, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
439dcf16
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
wcfs/client/wcfs.cpp
wcfs/client/wcfs.cpp
+5
-6
No files found.
wcfs/client/wcfs.cpp
View file @
5eed9093
...
...
@@ -1211,18 +1211,17 @@ error _Mapping::unmap() {
// - f.wconn.atMu
// - f._mmapMu
error
_Mapping
::
_remmapblk
(
int64_t
blk
,
zodb
::
Tid
at
)
{
_Mapping
*
mmap
=
this
;
FileH
f
=
mmap
->
fileh
;
_Mapping
&
mmap
=
*
this
;
FileH
f
=
mmap
.
fileh
;
xerr
::
Contextf
E
(
"_remmapblk #%ld @%s"
,
blk
,
v
(
at
));
etrace
(
""
);
ASSERT
(
mmap
->
blk_start
<=
blk
&&
blk
<
mmap
->
blk_stop
());
ASSERT
(
mmap
.
blk_start
<=
blk
&&
blk
<
mmap
.
blk_stop
());
// a mmapping is efaulted only for closed files, i.e. fileh is removed from wconn._filehTab
// -> pinner should not see the fileh and so should not see this mapping.
ASSERT
(
!
mmap
->
efaulted
);
ASSERT
(
!
mmap
.
efaulted
);
uint8_t
*
blkmem
=
mmap
->
mem_start
+
(
blk
-
mmap
->
blk_start
)
*
f
->
blksize
;
uint8_t
*
blkmem
=
mmap
.
mem_start
+
(
blk
-
mmap
.
blk_start
)
*
f
->
blksize
;
error
err
;
os
::
File
fsfile
;
bool
fclose
=
false
;
...
...
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