From 5d6f385ad253a5e26d180fb689cb0e91af1392fd Mon Sep 17 00:00:00 2001 From: sageweil Date: Thu, 11 Oct 2007 03:16:29 +0000 Subject: [PATCH] verify xlist empty in destructor git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1918 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/sage/mds/include/xlist.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/branches/sage/mds/include/xlist.h b/branches/sage/mds/include/xlist.h index 9c1da49502916..2ea2cbec6c815 100644 --- a/branches/sage/mds/include/xlist.h +++ b/branches/sage/mds/include/xlist.h @@ -42,6 +42,11 @@ private: public: xlist() : _front(0), _back(0), _size(0) {} + ~xlist() { + assert(_size == 0); + assert(_front == 0); + assert(_back == 0); + } int size() { return _size; } bool empty() { -- 2.39.5