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
aaf238b5
Commit
aaf238b5
authored
Jan 08, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c7299220
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
wcfs/internal/wcfs.cpp
wcfs/internal/wcfs.cpp
+1
-3
wcfs/internal/wcfs.h
wcfs/internal/wcfs.h
+2
-2
No files found.
wcfs/internal/wcfs.cpp
View file @
aaf238b5
...
...
@@ -51,7 +51,6 @@
#include <wendelin/bigfile/virtmem.h>
#include <wendelin/bigfile/ram.h>
#include <wendelin/bug.h>
#include <golang/fmt.h>
...
...
@@ -423,8 +422,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
// XXX err context? blk #<blk> @<at>
_Mapping
*
mmap
=
this
;
//XXX reenable
//ASSERT(mmap->blk_start <= blk && blk < mmap->blk_stop());
ASSERT
(
mmap
->
blk_start
<=
blk
&&
blk
<
mmap
->
blk_stop
());
FileH
f
=
mmap
->
fileh
;
error
err
;
...
...
wcfs/internal/wcfs.h
View file @
aaf238b5
...
...
@@ -48,6 +48,7 @@ using std::tuple;
using
std
::
pair
;
#include "wcfs_misc.h"
#include <wendelin/bug.h>
// from wendelin/bigfile/virtmem.h
extern
"C"
{
...
...
@@ -168,8 +169,7 @@ struct _Mapping : object {
VMA
*
vma
;
// mmapped under this virtmem VMA | nil if created standalone from virtmem
int64_t
blk_stop
()
const
{
//XXX reenable
//ASSERT((mem_stop - mem_start) % file->blksize == 0);
ASSERT
((
mem_stop
-
mem_start
)
%
fileh
->
_blksize
==
0
);
return
blk_start
+
(
mem_stop
-
mem_start
)
/
fileh
->
_blksize
;
}
...
...
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