~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-06-28 02:03:37 UTC
  • Revision ID: brian@tangent.org-20080628020337-6y2swv2izzde76vw
Removed my_pthread_setprio()

Show diffs side-by-side

added added

removed removed

Lines of Context:
878
878
    DBUG_PRINT("query",("%-.4096s",thd->query));
879
879
 
880
880
    if (!(specialflag & SPECIAL_NO_PRIOR))
881
 
      my_pthread_setprio(pthread_self(),QUERY_PRIOR);
 
881
    {
 
882
      struct sched_param tmp_sched_param;
 
883
 
 
884
      memset(&tmp_sched_param, 0, sizeof(tmp_sched_param));
 
885
      tmp_sched_param.sched_priority= QUERY_PRIOR;
 
886
      (void)pthread_setschedparam(pthread_self(), SCHED_OTHER, &tmp_sched_param);
 
887
    }
882
888
 
883
889
    mysql_parse(thd, thd->query, thd->query_length, &end_of_stmt);
884
890
 
918
924
    }
919
925
 
920
926
    if (!(specialflag & SPECIAL_NO_PRIOR))
921
 
      my_pthread_setprio(pthread_self(),WAIT_PRIOR);
 
927
    {
 
928
      struct sched_param tmp_sched_param;
 
929
 
 
930
      memset(&tmp_sched_param, 0, sizeof(tmp_sched_param));
 
931
      tmp_sched_param.sched_priority= WAIT_PRIOR;
 
932
      (void)pthread_setschedparam(pthread_self(), SCHED_OTHER, &tmp_sched_param);
 
933
    }
922
934
    DBUG_PRINT("info",("query ready"));
923
935
    break;
924
936
  }