diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index 2abe76b483c..d7076d30528 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -720,6 +720,31 @@ namespace rgw { } while (! (stop || shutdown)); } /* RGWLibFS::gc */ + std::ostream& operator<<(std::ostream &os, + RGWFileHandle const &rgw_fh) + { + const auto& fhk = rgw_fh.get_key(); + const auto& fh = const_cast(rgw_fh).get_fh(); + os << ""; + return os; + } + RGWFileHandle::~RGWFileHandle() { if (parent && (! parent->is_root())) { /* safe because if parent->unref causes its deletion, diff --git a/src/rgw/rgw_file.h b/src/rgw/rgw_file.h index 9cc55ac0b94..e0f9b627410 100644 --- a/src/rgw/rgw_file.h +++ b/src/rgw/rgw_file.h @@ -642,6 +642,9 @@ namespace rgw { virtual ~RGWFileHandle(); + friend std::ostream& operator<<(std::ostream &os, + RGWFileHandle const &rgw_fh); + class Factory : public cohort::lru::ObjectFactory { public: