~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/heap/hp_clear.c

  • Committer: Brian Aker
  • Date: 2009-01-17 02:46:52 UTC
  • Revision ID: brian@gir-3.local-20090117024652-4ducefje08ajbs1q
Refactor append_identifier and remove dead OPTION_QUOTE_SHOW_CREATE option
(we always quote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
  database remains open.
20
20
*/
21
21
 
22
 
#include "heap_priv.h"
23
 
 
24
 
using namespace drizzled;
25
 
 
26
 
static void hp_clear_keys(HP_SHARE *info);
 
22
#include "heapdef.h"
27
23
 
28
24
void heap_clear(HP_INFO *info)
29
25
{
40
36
  return;
41
37
}
42
38
 
 
39
 
 
40
/*
 
41
  Clear all keys.
 
42
 
 
43
  SYNOPSIS
 
44
    heap_clear_keys()
 
45
    info      A pointer to the heap storage engine HP_INFO struct.
 
46
 
 
47
  DESCRIPTION
 
48
    Delete all trees of all indexes and leave them empty.
 
49
 
 
50
  RETURN
 
51
    void
 
52
*/
 
53
 
 
54
void heap_clear_keys(HP_INFO *info)
 
55
{
 
56
  hp_clear(info->s);
 
57
}
 
58
 
 
59
 
43
60
/*
44
61
  Clear all keys.
45
62
 
54
71
    void
55
72
*/
56
73
 
57
 
static void hp_clear_keys(HP_SHARE *info)
 
74
void hp_clear_keys(HP_SHARE *info)
58
75
{
59
76
  uint32_t key;
60
77