]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
neorados: No dangling references in arguments
authorAdam Emerson <aemerson@redhat.com>
Wed, 29 Nov 2023 06:03:07 +0000 (01:03 -0500)
committerAdam Emerson <aemerson@redhat.com>
Wed, 6 Dec 2023 20:39:35 +0000 (15:39 -0500)
commitbab36e143389de00b5c70fbd80ff3617aee79c45
tree6d77fdf81da5dd1a9d8b3e1eb1dfcc777d29ed16
parent06addeedffc239f7dca3497ff18f86bf111a59c1
neorados: No dangling references in arguments

`async_initiate` may call its lambda after the containing function
returns. As such, reference arguments may no longer point to anything by
the time we use them.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/include/neorados/RADOS.hpp
src/neorados/RADOS.cc
src/test/librados_test_stub/NeoradosTestStub.cc