Skip to content

Commit

Permalink
Merge pull request #10965 from ceph/wip-crypto-init
Browse files Browse the repository at this point in the history
common: only call crypto::init once per CephContext
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
  • Loading branch information
oritwas committed Sep 14, 2016
2 parents c2ac199 + 9dfc153 commit 52b0689
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/ceph_context.cc
Expand Up @@ -599,8 +599,10 @@ void CephContext::put() {

void CephContext::init_crypto()
{
ceph::crypto::init(this);
_crypto_inited = true;
if (!_crypto_inited) {
ceph::crypto::init(this);
_crypto_inited = true;
}
}

void CephContext::start_service_thread()
Expand Down

0 comments on commit 52b0689

Please sign in to comment.