initialize `fifo_tmp` to prevent the race on member variable `fifo` that
was identified in
8fa844383f9c22e758f39ecdda74f70de054ad68
Fixes: https://tracker.ceph.com/issues/66880
Signed-off-by: Casey Bodley <cbodley@redhat.com>
// FIFO supports multiple clients by design, so it's safe to
// race to create them.
std::unique_ptr<rgw::cls::fifo::FIFO> fifo_tmp;
- auto r = rgw::cls::fifo::FIFO::create(dpp, ioctx, oid, &fifo, y);
+ auto r = rgw::cls::fifo::FIFO::create(dpp, ioctx, oid, &fifo_tmp, y);
if (r) {
return r;
}