~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_rectest.cc

  • Committer: Brian Aker
  • Date: 2010-02-10 18:04:24 UTC
  • mfrom: (1286.1.5 build)
  • Revision ID: brian@gaz-20100210180424-03ypoyifmlc2lgcp
Merge of Brian/Padraig

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Test if a record has changed since last read */
17
17
 
18
 
#include "heapdef.h"
 
18
#include "heap_priv.h"
19
19
 
20
 
int hp_rectest(register HP_INFO *info, register const uchar *old_record)
 
20
int hp_rectest(register HP_INFO *info, register const unsigned char *old_record)
21
21
{
22
22
 
23
23
  if (hp_process_record_data_to_chunkset(info->s, old_record, info->current_ptr, 1))
24
24
  {
25
 
    return((my_errno=HA_ERR_RECORD_CHANGED)); /* Record have changed */
 
25
    return((errno=HA_ERR_RECORD_CHANGED)); /* Record have changed */
26
26
  }
27
27
 
28
28
  return(0);