mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
crimson/osd: make the get_nonce() static.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
This commit is contained in:
parent
c79f2aaba9
commit
5293d1ad1e
@ -112,7 +112,7 @@ seastar::future<> make_keyring()
|
||||
});
|
||||
}
|
||||
|
||||
uint64_t get_nonce()
|
||||
static uint64_t get_nonce()
|
||||
{
|
||||
if (auto pid = getpid(); pid == 1 || std::getenv("CEPH_USE_RANDOM_NONCE")) {
|
||||
// we're running in a container; use a random number instead!
|
||||
|
Loading…
Reference in New Issue
Block a user