~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_delete.cc

  • Committer: Stewart Smith
  • Date: 2011-03-29 01:30:47 UTC
  • mto: (2257.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: stewart@flamingspork.com-20110329013047-5ujzfx6pahmwuko2
have CachedDirectory print out a warning if we can't stat() something in a directory. We should always have access to at least stat() things in directories Drizzle is running in (otherwise there is likely a problem)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
/* remove current record in heap-database */
17
17
 
18
18
#include "heap_priv.h"
 
19
#include <drizzled/error_t.h>
 
20
#include <drizzled/internal/my_sys.h>
19
21
 
20
22
int heap_delete(HP_INFO *info, const unsigned char *record)
21
23
{
26
28
  test_active(info);
27
29
 
28
30
  if (info->opt_flag & READ_CHECK_USED)
29
 
    return(errno);                      /* Record changed */
 
31
    return(errno);   /* Record changed */
30
32
  share->changed=1;
31
33
 
32
34
  if ( --(share->records) < share->blength >> 1) share->blength>>=1;
97
99
    gpos=pos;
98
100
    if (!(pos=pos->next_key))
99
101
    {
100
 
      return(errno=HA_ERR_CRASHED);     /* This shouldn't happend */
 
102
      return(errno= drizzled::HA_ERR_CRASHED);  /* This shouldn't happend */
101
103
    }
102
104
  }
103
105