Skip to content

Commit

Permalink
Merge pull request ceph#49479 from tchaikov/wip-rgw-fmt-v8
Browse files Browse the repository at this point in the history
rgw: be compatible with fmtlib v8

Reviewed-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley authored Dec 16, 2022
2 parents f2bb489 + d012e47 commit 7471527
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rgw/driver/rados/rgw_data_sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,13 @@ struct RGWDataSyncEnv {
};

// pretty ostream output for `radosgw-admin bucket sync run`
#if FMT_VERSION >= 90000
template<typename ...T>
void pretty_print(const RGWDataSyncEnv* env, fmt::format_string<T...> fmt, T&& ...t) {
#else
template<typename S, typename ...T>
void pretty_print(const RGWDataSyncEnv* env, const S& fmt, T&& ...t) {
#endif
if (unlikely(!!env->ostr)) {
fmt::print(*env->ostr, fmt, std::forward<T>(t)...);
env->ostr->flush();
Expand Down

0 comments on commit 7471527

Please sign in to comment.