~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/heap_priv.h

  • Committer: Brian Aker
  • Date: 2011-01-12 06:45:23 UTC
  • mto: (2073.1.4 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2080.
  • Revision ID: brian@tangent.org-20110112064523-rqhptaqbph22qmj1
Remove custom error.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#ifndef PLUGIN_MEMORY_HEAP_PRIV_H
18
18
#define PLUGIN_MEMORY_HEAP_PRIV_H
19
19
 
20
 
#include <config.h>
 
20
#include "config.h"
21
21
#include <drizzled/base.h>
22
22
 
23
 
#include <drizzled/internal/my_sys.h>
24
 
#include <drizzled/charset_info.h>
25
 
#include <drizzled/internal/my_pthread.h>
 
23
#include "drizzled/internal/my_sys.h"
 
24
#include "drizzled/charset_info.h"
 
25
#include "drizzled/internal/my_pthread.h"
26
26
#include "heap.h"                       /* Structs & some defines */
27
 
#include <drizzled/tree.h>
 
27
#include "drizzled/tree.h"
28
28
#include <list>
29
29
 
30
30
#include <boost/thread/mutex.hpp>
39
39
 
40
40
#define CHUNK_STATUS_DELETED 0    /* this chunk has been deleted and can be reused */
41
41
#define CHUNK_STATUS_ACTIVE  1    /* this chunk represents the first part of a live record */
 
42
#define CHUNK_STATUS_LINKED  2    /* this chunk is a continuation from another chunk (part of chunkset) */
42
43
 
43
44
        /* Some extern variables */
44
45
 
47
48
 
48
49
#define test_active(info) \
49
50
if (!(info->update & HA_STATE_AKTIV))\
50
 
{ errno= drizzled::HA_ERR_NO_ACTIVE_RECORD; return(-1); }
 
51
{ errno=HA_ERR_NO_ACTIVE_RECORD; return(-1); }
51
52
#define hp_find_hash(A,B) ((HASH_INFO*) hp_find_block((A),(B)))
52
53
 
53
54
        /* Find pos for record and update it in info->current_ptr */
55
56
 
56
57
#define get_chunk_status(info,ptr) (ptr[(info)->offset_status])
57
58
 
 
59
#define get_chunk_count(info,rec_length) ((rec_length + (info)->chunk_dataspace_length - 1) / (info)->chunk_dataspace_length)
 
60
 
58
61
typedef struct st_hp_hash_info
59
62
{
60
63
  struct st_hp_hash_info *next_key;