]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
* scatterlock fix
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 25 May 2007 21:38:30 +0000 (21:38 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 25 May 2007 21:38:30 +0000 (21:38 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1380 29311d96-e01e-0410-9327-a35deaab8ce9

trunk/ceph/mds/ScatterLock.h

index ec5301774efa3f0ecf29c2897dd8c77b438be305..afaa76dd67d17f745155909b7778844d25d79d23 100644 (file)
@@ -38,7 +38,8 @@ class ScatterLock : public SimpleLock {
   int num_wrlock;
   
 public:
-  ScatterLock(MDSCacheObject *o, int t, int wo) : SimpleLock(o, t, wo) {}
+  ScatterLock(MDSCacheObject *o, int t, int wo) : SimpleLock(o, t, wo),
+                                                 num_wrlock(0) {}
 
   char get_replica_state() {
     switch (state) {