Skip to content

Commit a2d2664

Browse files
committed
neorados/fifo: Rewrite as proper I/O object
Split nominal handle object and reference-counted implementation. While we're at it, add lazy-open functionality. Signed-off-by: Adam C. Emerson <[email protected]>
1 parent 14ddf3c commit a2d2664

File tree

6 files changed

+1857
-1648
lines changed

6 files changed

+1857
-1648
lines changed

src/cls/fifo/cls_fifo_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,4 +610,8 @@ template<>
610610
struct fmt::formatter<rados::cls::fifo::info> : fmt::ostream_formatter {};
611611
template<>
612612
struct fmt::formatter<rados::cls::fifo::part_header> : fmt::ostream_formatter {};
613+
template<>
614+
struct fmt::formatter<rados::cls::fifo::journal_entry> : fmt::ostream_formatter {};
615+
template<>
616+
struct fmt::formatter<rados::cls::fifo::update> : fmt::ostream_formatter {};
613617
#endif

src/neorados/cls/common.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#pragma once
1313

1414
#include <concepts>
15-
#include <coroutine>
1615
#include <cstddef>
1716
#include <string>
1817
#include <type_traits>
@@ -35,6 +34,10 @@
3534
#include "include/buffer.h"
3635
#include "include/encoding.h"
3736

37+
#if !defined(__clang__) && defined(__GNUC__) && (__GNUC__ < 13)
38+
#define BROKEN_CO_COMPOSED
39+
#endif
40+
3841
/// \file neorados/cls/common.h
3942
///
4043
/// \brief Helpers for writing simple CLS clients

0 commit comments

Comments
 (0)