~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/heap_priv.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-24 00:16:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2251.
  • Revision ID: olafvdspek@gmail.com-20110324001614-wvmgc6eg52oq2321
Remove const_reference and reference from Session

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
/* This file is included in all heap-files */
17
 
#ifndef PLUGIN_MEMORY_HEAP_PRIV_H
18
 
#define PLUGIN_MEMORY_HEAP_PRIV_H
 
17
#pragma once
19
18
 
20
 
#include "config.h"
 
19
#include <config.h>
21
20
#include <drizzled/base.h>
22
21
 
23
 
#include "drizzled/internal/my_sys.h"
24
 
#include "drizzled/charset_info.h"
25
 
#include "drizzled/internal/my_pthread.h"
 
22
#include <drizzled/internal/my_sys.h>
 
23
#include <drizzled/charset_info.h>
 
24
#include <drizzled/internal/my_pthread.h>
26
25
#include "heap.h"                       /* Structs & some defines */
27
 
#include "drizzled/tree.h"
 
26
#include <drizzled/tree.h>
28
27
#include <list>
29
28
 
30
29
#include <boost/thread/mutex.hpp>
39
38
 
40
39
#define CHUNK_STATUS_DELETED 0    /* this chunk has been deleted and can be reused */
41
40
#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) */
43
41
 
44
42
        /* Some extern variables */
45
43
 
48
46
 
49
47
#define test_active(info) \
50
48
if (!(info->update & HA_STATE_AKTIV))\
51
 
{ errno=HA_ERR_NO_ACTIVE_RECORD; return(-1); }
 
49
{ errno= drizzled::HA_ERR_NO_ACTIVE_RECORD; return(-1); }
52
50
#define hp_find_hash(A,B) ((HASH_INFO*) hp_find_block((A),(B)))
53
51
 
54
52
        /* Find pos for record and update it in info->current_ptr */
56
54
 
57
55
#define get_chunk_status(info,ptr) (ptr[(info)->offset_status])
58
56
 
59
 
#define get_chunk_count(info,rec_length) ((rec_length + (info)->chunk_dataspace_length - 1) / (info)->chunk_dataspace_length)
60
 
 
61
57
typedef struct st_hp_hash_info
62
58
{
63
59
  struct st_hp_hash_info *next_key;
107
103
 
108
104
extern boost::mutex THR_LOCK_heap;
109
105
 
110
 
#endif /* PLUGIN_MEMORY_HEAP_PRIV_H */