From a9173eff11567401ff4fcf5e083fc248c47fc44f Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Mon, 13 Jul 2020 15:41:00 -0700 Subject: [PATCH] crimson/os/seastore: add const cast() method Signed-off-by: Samuel Just --- src/crimson/os/seastore/cached_extent.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index 6e4bd650a758c..7ab52f0fa6339 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -171,6 +171,10 @@ public: TCachedExtentRef cast() { return TCachedExtentRef(static_cast(this)); } + template + TCachedExtentRef cast() const { + return TCachedExtentRef(static_cast(this)); + } /// Returns true if extent is part of an open transaction bool is_pending() const { -- 2.39.5