Commit aaf238b5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c7299220
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#include <wendelin/bigfile/virtmem.h> #include <wendelin/bigfile/virtmem.h>
#include <wendelin/bigfile/ram.h> #include <wendelin/bigfile/ram.h>
#include <wendelin/bug.h>
#include <golang/fmt.h> #include <golang/fmt.h>
...@@ -423,8 +422,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) { ...@@ -423,8 +422,7 @@ error _Mapping::_remmapblk(int64_t blk, zodb::Tid at) {
// XXX err context? blk #<blk> @<at> // XXX err context? blk #<blk> @<at>
_Mapping *mmap = this; _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; FileH f = mmap->fileh;
error err; error err;
......
...@@ -48,6 +48,7 @@ using std::tuple; ...@@ -48,6 +48,7 @@ using std::tuple;
using std::pair; using std::pair;
#include "wcfs_misc.h" #include "wcfs_misc.h"
#include <wendelin/bug.h>
// from wendelin/bigfile/virtmem.h // from wendelin/bigfile/virtmem.h
extern "C" { extern "C" {
...@@ -168,8 +169,7 @@ struct _Mapping : object { ...@@ -168,8 +169,7 @@ struct _Mapping : object {
VMA *vma; // mmapped under this virtmem VMA | nil if created standalone from virtmem VMA *vma; // mmapped under this virtmem VMA | nil if created standalone from virtmem
int64_t blk_stop() const { int64_t blk_stop() const {
//XXX reenable ASSERT((mem_stop - mem_start) % fileh->_blksize == 0);
//ASSERT((mem_stop - mem_start) % file->blksize == 0);
return blk_start + (mem_stop - mem_start) / fileh->_blksize; return blk_start + (mem_stop - mem_start) / fileh->_blksize;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment