]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: Classes with virtual functions get virtual destructors
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 3 Feb 2017 19:33:10 +0000 (14:33 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 3 Feb 2017 22:23:23 +0000 (17:23 -0500)
Including template specializations.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/test/librbd/test_mock_ExclusiveLock.cc
src/test/rbd_mirror/test_mock_LeaderWatcher.cc

index fc36534da77b5d3d29f0195c233778c31d96ea5b..b05bef2a1455b11054e3b9df11a7f8975fb9bcc1 100644 (file)
@@ -43,6 +43,8 @@ struct ManagedLock<MockExclusiveLockImageCtx> {
     : m_lock("ManagedLock::m_lock") {
   }
 
+  virtual ~ManagedLock() = default;
+
   mutable Mutex m_lock;
 
   virtual void shutdown_handler(int r, Context *) = 0;
index 8477fce6193c60f9f7cf93c39e9b55d43bef4738..f827e180ad9ee0f60f61b42ac4607faba40409a6 100644 (file)
@@ -56,6 +56,8 @@ struct ManagedLock<MockTestImageCtx> {
     : m_lock("ManagedLock::m_lock") {
   }
 
+  virtual ~ManagedLock() = default;
+
   mutable Mutex m_lock;
 
   bool is_lock_owner() const {