~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/iocache.h

  • Committer: Brian Aker
  • Date: 2009-05-21 18:09:02 UTC
  • mfrom: (1030.1.3 merge)
  • Revision ID: brian@gaz-20090521180902-5vrm1b0vbe5cby1j
MergeĀ forĀ Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  int                   running_threads; /* threads not in lock. */
45
45
  int                   total_threads;   /* threads sharing the cache. */
46
46
  int                   error;           /* Last error. */
47
 
#ifdef NOT_YET_IMPLEMENTED
48
 
  /* whether the structure should be free'd */
49
 
  bool alloced;
50
 
#endif
51
47
} IO_CACHE_SHARE;
52
48
 
53
49
typedef struct st_io_cache    /* Used when cacheing files */
122
118
    results. Details to be documented later
123
119
  */
124
120
  enum cache_type type;
 
121
  int error;
125
122
  /*
126
123
    Callbacks when the actual read I/O happens. These were added and
127
124
    are currently used for binary logging of LOAD DATA INFILE - when a
132
129
  IO_CACHE_CALLBACK pre_read;
133
130
  IO_CACHE_CALLBACK post_read;
134
131
  IO_CACHE_CALLBACK pre_close;
135
 
  /*
136
 
    Counts the number of times, when we were forced to use disk. We use it to
137
 
    increase the binlog_cache_disk_use status variable.
138
 
  */
139
 
  uint32_t disk_writes;
140
132
  void* arg;        /* for use by pre/post_read */
141
133
  char *file_name;      /* if used with 'open_cached_file' */
142
134
  char *dir,*prefix;
148
140
    "hard" error, and the actual number of I/O-ed bytes if the read/write was
149
141
    partial.
150
142
  */
151
 
  int  seek_not_done,error;
 
143
  int  seek_not_done;
152
144
  /* buffer_length is memory size allocated for buffer or write_buffer */
153
145
  size_t  buffer_length;
154
146
  /* read_length is the same as buffer_length except when we use async io */