~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-07-14 23:48:30 UTC
  • Revision ID: brian@tangent.org-20080714234830-84ercqqitk2lwcga
I had removed most of the pthread_setschedparam() calls a bit ago. This
patch removes a couple I had left in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
704
704
 
705
705
    general_log_write(thd, command, thd->query, thd->query_length);
706
706
 
707
 
    if (!(specialflag & SPECIAL_NO_PRIOR))
708
 
    {
709
 
      struct sched_param tmp_sched_param;
710
 
 
711
 
      memset(&tmp_sched_param, 0, sizeof(tmp_sched_param));
712
 
      tmp_sched_param.sched_priority= QUERY_PRIOR;
713
 
      (void)pthread_setschedparam(pthread_self(), SCHED_OTHER, &tmp_sched_param);
714
 
    }
715
 
 
716
707
    mysql_parse(thd, thd->query, thd->query_length, &end_of_stmt);
717
708
 
718
709
    while (!thd->killed && (end_of_stmt != NULL) && ! thd->is_error())
749
740
 
750
741
      mysql_parse(thd, beginning_of_next_stmt, length, &end_of_stmt);
751
742
    }
752
 
 
753
 
    if (!(specialflag & SPECIAL_NO_PRIOR))
754
 
    {
755
 
      struct sched_param tmp_sched_param;
756
 
 
757
 
      memset(&tmp_sched_param, 0, sizeof(tmp_sched_param));
758
 
      tmp_sched_param.sched_priority= WAIT_PRIOR;
759
 
      (void)pthread_setschedparam(pthread_self(), SCHED_OTHER, &tmp_sched_param);
760
 
    }
761
743
    break;
762
744
  }
763
745
  case COM_FIELD_LIST:                          // This isn't actually needed