-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-37144: Don't set AuxIO & NonIO thread pri to lowest
When setting the priority of Writer threads to lowest, ExecutorThread::start() was incorrectly setting the priority of the _current_ thread, not the thread just created. As a result this: - Didn't lower the priority of the first writer thread - Also lowered the priority of all threads created afterwards (i.e. the AuxIO and NonIO threads). Fix by moving the setpriority() call to after the thread has been created, to ExecutorThread::run(). Change-Id: I39dcf0aeda216441260204b912689cab0a4af8a3 Reviewed-on: http://review.couchbase.org/118861 Well-Formed: Build Bot <build@couchbase.com> Reviewed-by: Paolo Cocchi <paolo.cocchi@couchbase.com> Tested-by: Build Bot <build@couchbase.com>
- Loading branch information
Showing
4 changed files
with
131 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters