Commit aaf238b5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c7299220
......@@ -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;
......
......@@ -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;
}
......
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