From: Radoslaw Zarzynski Date: Tue, 27 Jul 2021 16:27:11 +0000 (+0000) Subject: crimson/osd: make the get_nonce() static. X-Git-Tag: v17.1.0~1277^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42510%2Fhead;p=ceph.git crimson/osd: make the get_nonce() static. Signed-off-by: Radoslaw Zarzynski --- 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!