Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: swift: disable revocation thread if sleep == 0 #14501

Merged
merged 1 commit into from
Apr 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/rgw/rgw_keystone.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,16 @@ class TokenCache {
cct(g_ceph_context),
lock("rgw::keystone::TokenCache"),
max(cct->_conf->rgw_keystone_token_cache_size) {
/* The thread name has been kept for backward compliance. */
revocator.create("rgw_swift_k_rev");
/* revocation logic needs to be smarter, but meanwhile,
* make it optional.
* see http://tracker.ceph.com/issues/9493
* http://tracker.ceph.com/issues/19499
*/
if (cct->_conf->rgw_keystone_revocation_interval > 0
&& cct->_conf->rgw_keystone_token_cache_size ) {
/* The thread name has been kept for backward compliance. */
revocator.create("rgw_swift_k_rev");
}
}

~TokenCache() {
Expand Down