From: Matt Benjamin Date: Wed, 5 Jun 2019 14:40:08 +0000 (-0400) Subject: rgw_file: pretty-print fh_key X-Git-Tag: v15.1.0~2540^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=84a2c22108a3d15b836680894ba750b637e49cd2;p=ceph-ci.git rgw_file: pretty-print fh_key Signed-off-by: Matt Benjamin --- diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index cf6c0f53039..74982308a64 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*/,