From cec9e4d7f0b1370f9414fa56c86d7b9a44dd409a Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Wed, 5 Jun 2019 10:40:08 -0400 Subject: [PATCH] rgw_file: pretty-print fh_key Signed-off-by: Matt Benjamin (cherry picked from commit 84a2c22108a3d15b836680894ba750b637e49cd2) --- src/rgw/rgw_file.cc | 9 +++++++++ src/rgw/rgw_file.h | 7 +++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 00c197d07ff0b..75141a552ef85 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -942,6 +942,15 @@ namespace rgw { rele(); } /* RGWLibFS::close */ + inline std::ostream& operator<<(std::ostream &os, fh_key const &fhk) { + os << ""; + return os; + } + inline std::ostream& operator<<(std::ostream &os, struct timespec const &ts) { os << "object_name() << " for " << key_name << " (" << obj_name << ")" + << " -> " << fhk << dendl; - fh_key fhk = parent->make_fhk(obj_name); - retry: RGWFileHandle* fh = fh_cache.find_latch(fhk.fh_hk.object /* partition selector*/, -- 2.39.5