~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.cc

  • Committer: Stewart Smith
  • Date: 2010-04-01 04:50:49 UTC
  • mfrom: (1283.28.35)
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: stewart@flamingspork.com-20100401045049-ja409wya5jjyw8uy
Merged embedded-innodb-position-rnd-pos into embedded-innodb-autoincrement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
  assert(table->s == table_share);
207
207
  assert(alloc_root_inited(&table->mem_root));
208
208
 
209
 
  if ((error=open(name,mode,test_if_locked)))
 
209
  if ((error=open(name, mode, test_if_locked)))
210
210
  {
211
211
    if ((error == EACCES || error == EROFS) && mode == O_RDWR &&
212
 
        (table->db_stat & HA_TRY_READ_ONLY))
 
212
        (table->db_stat & HA_TRY_READ_ONLY))
213
213
    {
214
214
      table->db_stat|=HA_READ_ONLY;
215
215
      error=open(name,O_RDONLY,test_if_locked);