~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/mi_locking.c

Merged in Eric's whitespace cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
        }
197
197
      }
198
198
      _mi_test_if_changed(info);
199
 
        
 
199
 
200
200
      info->lock_type=lock_type;
201
201
      info->invalidator=info->s->invalidator;
202
202
      share->w_locks++;
213
213
    /*
214
214
       Check for bad file descriptors if this table is part
215
215
       of a merge union. Failing to capture this may cause
216
 
       a crash on windows if the table is renamed and 
 
216
       a crash on windows if the table is renamed and
217
217
       later on referenced by the merge table.
218
218
     */
219
219
    if( info->owned_by_merge && (info->s)->kfile < 0 )
308
308
 
309
309
  IMPLEMENTATION
310
310
    Allow concurrent inserts if we don't have a hole in the table or
311
 
    if there is no active write lock and there is active read locks and 
 
311
    if there is no active write lock and there is active read locks and
312
312
    myisam_concurrent_insert == 2. In this last case the new
313
313
    row('s) are inserted at end of file instead of filling up the hole.
314
314