~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_lock.cc

  • Committer: Eric Herman
  • Date: 2008-12-06 19:42:46 UTC
  • mto: (656.1.6 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: eric@mysql.com-20081206194246-5cdexuu81i366eek
removed trailing whitespace with simple script:

for file in $(find . -name "*.c") $(find . -name "*.cc") $(find . -name "*.h"); do ruby -pe 'gsub(/\s+$/, $/)' < $file > $file.out; mv $file.out $file; done;

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
# else
86
86
#  include <time.h>
87
87
# endif
88
 
#endif  
 
88
#endif
89
89
 
90
90
#include <drizzled/util/test.h>
91
91
 
502
502
      if (using_concurrent_insert)
503
503
      {
504
504
        /*
505
 
          We can't free this lock; 
 
505
          We can't free this lock;
506
506
          Link lock away from read chain back into read_wait chain
507
507
        */
508
508
        if (((*data->prev)=data->next))
515
515
        continue;
516
516
      }
517
517
      lock->read_no_write_count++;
518
 
    }      
 
518
    }
519
519
    data->cond=0;                               /* Mark thread free */
520
520
    pthread_cond_signal(cond);
521
521
  } while ((data=data->next));
539
539
  else if (lock_type == TL_WRITE_DELAYED && data->cond)
540
540
  {
541
541
    /*
542
 
      This only happens in extreme circumstances when a 
 
542
      This only happens in extreme circumstances when a
543
543
      write delayed lock that is waiting for a lock
544
544
    */
545
545
    lock->write_wait.last=data->prev;           /* Put it on wait queue */