]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_aio_throttle.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rgw / rgw_aio_throttle.h
index 26a3578cabff552e8d0823a450b1c17cfb1d53ea..30ae93cd6b546fd73ea2c03a3f9535727700d699 100644 (file)
@@ -45,7 +45,7 @@ class Throttle {
  public:
   Throttle(uint64_t window) : window(window) {}
 
-  ~Throttle() {
+  virtual ~Throttle() {
     // must drain before destructing
     ceph_assert(pending.empty());
     ceph_assert(completed.empty());
@@ -66,6 +66,8 @@ class BlockingAioThrottle final : public Aio, private Throttle {
  public:
   BlockingAioThrottle(uint64_t window) : Throttle(window) {}
 
+  virtual ~BlockingAioThrottle() override {};
+
   AioResultList get(const RGWSI_RADOS::Obj& obj, OpFunc&& f,
                     uint64_t cost, uint64_t id) override final;
 
@@ -100,6 +102,8 @@ class YieldingAioThrottle final : public Aio, private Throttle {
     : Throttle(window), context(context), yield(yield)
   {}
 
+  virtual ~YieldingAioThrottle() override {};
+
   AioResultList get(const RGWSI_RADOS::Obj& obj, OpFunc&& f,
                     uint64_t cost, uint64_t id) override final;