]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: mark newly created snaprealms as open
authorSage Weil <sage.weil@dreamhost.com>
Wed, 17 Aug 2011 16:02:44 +0000 (09:02 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 17 Aug 2011 16:07:06 +0000 (09:07 -0700)
Fixes: #1399
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDCache.cc

index 65aabcc48d80e22cc8f3d6a2da8f4b1bc9ad73a4..2211494059460658ef2e93959d50a3dde82289ed 100644 (file)
@@ -7900,6 +7900,7 @@ void MDCache::_snaprealm_create_finish(MDRequest *mdr, Mutation *mut, CInode *in
   ::decode(seq, p);
 
   in->open_snaprealm();
+  in->snaprealm->open = true;
   in->snaprealm->srnode.seq = seq;
   in->snaprealm->srnode.created = seq;
   in->snaprealm->srnode.current_parent_since = seq;