diff options
author | Michael Widenius <monty@askmonty.org> | 2011-05-26 14:38:17 +0300 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2011-05-26 14:38:17 +0300 |
commit | ccdecaea5931e548e25c4c874a90017c98c474c3 (patch) | |
tree | e25be6d3d0531f95bd3b5002ca865674daab83eb /storage/pbxt | |
parent | e55fb3bbe844dcc5f53ea7bdb6f13b5b79ff56ec (diff) | |
download | mariadb-git-ccdecaea5931e548e25c4c874a90017c98c474c3.tar.gz |
Disable call to setpriority() in pbxt. This caused mysqld to run with nice priority -19, which was far from optimal.
mysql-test/suite/innodb/r/innodb_bug60049.result:
Updated results
mysql-test/suite/innodb/t/innodb_bug60049.test:
Force global.innodb_fast_shutdown to 0 as test require it
mysql-test/suite/innodb_plugin/t/innodb_bug60049.test:
Force global.innodb_fast_shutdown to 0 as test require it
storage/pbxt/src/pthread_xt.cc:
Disable call to setpriority()
Diffstat (limited to 'storage/pbxt')
-rwxr-xr-x | storage/pbxt/src/pthread_xt.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/pbxt/src/pthread_xt.cc b/storage/pbxt/src/pthread_xt.cc index e7f0632e9ae..c5dc2e41fdd 100755 --- a/storage/pbxt/src/pthread_xt.cc +++ b/storage/pbxt/src/pthread_xt.cc @@ -558,8 +558,10 @@ xtPublic int xt_p_set_low_priority(pthread_t thr) */ /* -20 = highest, 20 = lowest */ +#ifdef SET_GLOBAL_PRIORITY if (setpriority(PRIO_PROCESS, getpid(), 20) == -1) return errno; +#endif return 0; } return pth_set_priority(thr, pth_min_priority); |