]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: fix get_projected_srnode. We might have projected nodes without projected snaprealms
authorGreg Farnum <gregf@hq.newdream.net>
Fri, 20 Aug 2010 20:38:10 +0000 (13:38 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 20 Aug 2010 20:38:10 +0000 (13:38 -0700)
src/mds/CInode.h

index 79d22f2f506bbb40857507b910b36e3868a6815d..fc89398d4dbff9c61fc7d05ffca71e904ca33a29 100644 (file)
@@ -272,8 +272,7 @@ public:
         if ((*p)->snapnode)
           return (*p)->snapnode;
     }
-    assert(0);
-    return NULL;
+    return &snaprealm->srnode;
   }
   void project_past_parent(SnapRealm *newparent, bufferlist& snapbl);