]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
global: mark pidfile_write() with [[nodiscard]].
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Fri, 29 May 2020 14:49:34 +0000 (16:49 +0200)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 2 Jun 2020 14:23:47 +0000 (16:23 +0200)
commita97b18fbd6cc0b400bd36eb0173af2765cf18419
treee7da83b21f8abd6bd6498ab2384a882af1517527
parente6f5e102ba4b59f30551953f0d2266aa81a11c8a
global: mark pidfile_write() with [[nodiscard]].

The goal is to never implicitly ignore errors that the function can
return, particularly the failure on pidfile locking due to the file
being hold by another instance. This problem happened recently in
crimson-osd.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/global/pidfile.h