InnoDB Plugin  1.0
Macros | Variables
btr0types.h File Reference
#include "univ.i"
#include "rem0types.h"
#include "page0types.h"
#include "sync0rw.h"
Include dependency graph for btr0types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define btr_search_latch   (*btr_search_latch_temp)
#define btr_blob_dbg_add_rec(rec, index, offsets, ctx)   ((void) 0)
#define btr_blob_dbg_add(page, index, ctx)   ((void) 0)
#define btr_blob_dbg_remove_rec(rec, index, offsets, ctx)   ((void) 0)
#define btr_blob_dbg_remove(page, index, ctx)   ((void) 0)
#define btr_blob_dbg_restore(npage, page, index, ctx)   ((void) 0)
#define btr_blob_dbg_op(page, rec, index, ctx, op)   ((void) 0)
#define BTR_EXTERN_FIELD_REF_SIZE   20

Variables

rw_lock_tbtr_search_latch_temp
 The latch protecting the adaptive search system.
char btr_search_enabled
const byte field_ref_zero [BTR_EXTERN_FIELD_REF_SIZE]

Detailed Description

The index tree general types

Created 2/17/1996 Heikki Tuuri

Macro Definition Documentation

#define BTR_EXTERN_FIELD_REF_SIZE   20
The size of a reference to data stored on a different page.

The reference is stored at the end of the prefix of the field in the index record.

#define btr_search_latch   (*btr_search_latch_temp)

The latch protecting the adaptive search system

Variable Documentation

char btr_search_enabled
Flag: has the search system been enabled?

Protected by btr_search_latch.

rw_lock_t* btr_search_latch_temp

The latch protecting the adaptive search system.

This latch protects the (1) hash index; (2) columns of a record to which we have a pointer in the hash index;

but does NOT protect:

(3) next record offset field in a record; (4) next or previous records on the same page.

Bear in mind (3) and (4) when using the hash index.

const byte field_ref_zero[BTR_EXTERN_FIELD_REF_SIZE]
A BLOB field reference full of zero, for use in assertions and tests.

Initially, BLOB field references are set to zero, in dtuple_convert_big_rec().