]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: pull scatterlock of xlist in destructor
authorSage Weil <sage@newdream.net>
Thu, 20 Nov 2008 06:01:14 +0000 (22:01 -0800)
committerSage Weil <sage@newdream.net>
Thu, 20 Nov 2008 06:01:14 +0000 (22:01 -0800)
Really, this should happen sooner, but for now this is equivalent to the
old xlist::item destructor.

src/mds/ScatterLock.h

index c9676cb0b9b97936582e4f7ebfc9bd77196f5b4a..8ff0f9c40cf3a0a6713749e1aae75df4e7bbd7ca 100644 (file)
@@ -76,6 +76,9 @@ public:
     num_wrlock(0),
     updated(false),
     xlistitem_updated(this) {}
+  ~ScatterLock() {
+    xlistitem_updated.remove_myself();   // FIXME this should happen sooner, i think...
+  }
 
   int get_replica_state() const {
     switch (state) {