~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:32:20 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913013220-5r289ttkw5w5nm2p
Added calls to the dtrace probes related to insertion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2770
2770
int handler::ha_write_row(unsigned char *buf)
2771
2771
{
2772
2772
  int error;
2773
 
  DRIZZLE_INSERT_ROW_START();
 
2773
  DRIZZLE_INSERT_ROW_START(table_share->db.str, table_share->table_name.str);
2774
2774
 
2775
2775
  /* 
2776
2776
   * If we have a timestamp column, update it to the current time 
2786
2786
  if (unlikely(error= write_row(buf)))
2787
2787
    return error;
2788
2788
 
 
2789
  DRIZZLE_INSERT_ROW_DONE(error);
 
2790
 
2789
2791
  if (unlikely(log_row_for_replication(table, 0, buf)))
2790
2792
    return HA_ERR_RBR_LOGGING_FAILED; /* purecov: inspected */
2791
2793
 
2792
 
  DRIZZLE_INSERT_ROW_END();
2793
2794
  return 0;
2794
2795
}
2795
2796