~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_rectest.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-10 09:27:50 UTC
  • mto: (2430.1.6 rf)
  • mto: This revision was merged to the branch mainline in revision 2436.
  • Revision ID: olafvdspek@gmail.com-20111010092750-ryxgmn7zj5yvxfkf
Refactor

Show diffs side-by-side

added added

removed removed

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