~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_update.cc

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "myisam_priv.h"
19
19
#include <drizzled/util/test.h>
20
20
 
 
21
using namespace drizzled;
 
22
 
21
23
int mi_update(register MI_INFO *info, const unsigned char *oldrec, unsigned char *newrec)
22
24
{
23
25
  int flag,key_changed,save_errno;
24
 
  register my_off_t pos;
 
26
  register internal::my_off_t pos;
25
27
  uint32_t i;
26
28
  unsigned char old_key[MI_MAX_KEY_BUFF],*new_key;
27
29
  bool auto_key_changed=0;
28
30
  uint64_t changed;
29
31
  MYISAM_SHARE *share= info->s;
30
 
  ha_checksum old_checksum= 0;
 
32
  internal::ha_checksum old_checksum= 0;
31
33
 
32
34
  if (!(info->update & HA_STATE_AKTIV))
33
35
  {
123
125
    */
124
126
    MI_STATUS_INFO state;
125
127
    ha_rows org_split;
126
 
    my_off_t org_delete_link;
 
128
    internal::my_off_t org_delete_link;
127
129
 
128
130
    memcpy(&state, info->state, sizeof(state));
129
131
    org_split=       share->state.split;