From 5293d1ad1ea379d7cc43990b0f96f2724fef6e0a Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 27 Jul 2021 16:27:11 +0000 Subject: [PATCH] crimson/osd: make the get_nonce() static. Signed-off-by: Radoslaw Zarzynski --- src/crimson/osd/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/osd/main.cc b/src/crimson/osd/main.cc index 2c6105af840..07eb2af4157 100644 --- a/src/crimson/osd/main.cc +++ b/src/crimson/osd/main.cc @@ -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!