~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_rectest.cc

  • Committer: Monty Taylor
  • Date: 2010-07-19 05:06:59 UTC
  • mto: (1662.1.2 rollup)
  • mto: This revision was merged to the branch mainline in revision 1663.
  • Revision ID: mordred@inaugust.com-20100719050659-if3thz0k66m1jkaf
Backed out two bits that snuck in to the merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* Test if a record has changed since last read */
17
17
 
20
20
int hp_rectest(register HP_INFO *info, register const unsigned char *old_record)
21
21
{
22
22
 
23
 
  if (hp_compare_record_data_to_chunkset(info->getShare(), old_record, info->current_ptr))
 
23
  if (hp_process_record_data_to_chunkset(info->s, old_record, info->current_ptr, 1))
24
24
  {
25
 
    return((errno= drizzled::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);