xapian-core
1.4.27
|
#include <config.h>
#include "glass_freelist.h"
#include "glass_table.h"
#include "xapian/error.h"
#include "omassert.h"
#include "wordaccess.h"
#include <cstring>
Go to the source code of this file.
Macros | |
#define | FREELIST_END block_size |
Variables | |
const unsigned | C_BASE = 8 |
The first offset to use for storing free block info. More... | |
const uint4 | UNUSED = static_cast<uint4>(-1) |
Invalid freelist block value, so we can detect overreading bugs, etc. More... | |
Glass freelist.
Definition in file glass_freelist.cc.
#define FREELIST_END block_size |
Definition at line 52 of file glass_freelist.cc.
Referenced by GlassFreeList::commit(), GlassFreeList::get_block(), GlassFreeList::mark_block_unused(), and GlassFreeList::walk().
const unsigned C_BASE = 8 |
The first offset to use for storing free block info.
The first 4 bytes store the revision. The next byte (which is the level for a block in the B-tree) is set to LEVEL_FREELIST to mark this as a freelist block).
Definition at line 61 of file glass_freelist.cc.
Referenced by GlassFreeList::get_block(), GlassFreeList::mark_block_unused(), and GlassFreeList::walk().
Invalid freelist block value, so we can detect overreading bugs, etc.
Definition at line 64 of file glass_freelist.cc.
Referenced by GlassFreeList::commit(), GlassFreeList::get_block(), GlassFreeList::mark_block_unused(), and GlassFreeList::walk().