From eba9e7e7731e928055687d9c2d420d203cfa20e1 Mon Sep 17 00:00:00 2001 From: sage Date: Wed, 4 Aug 2004 00:18:26 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@67 29311d96-e01e-0410-9327-a35deaab8ce9 --- ceph/mds/MDCache.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ceph/mds/MDCache.cc b/ceph/mds/MDCache.cc index ac569d05c5093..47d649df69afd 100644 --- a/ceph/mds/MDCache.cc +++ b/ceph/mds/MDCache.cc @@ -871,6 +871,8 @@ void MDCache::handle_inode_update(MInodeUpdate *m) // update! dout(7) << "got inode_update on " << *in << endl; + dout(7) << "dir_auth for " << *in << " was " << in->dir_auth << endl; + // ugly hack to avoid corrupting weird behavior of dir_auth int old_dir_auth = in->dir_auth; bool wasours = in->dir_authority(mds->get_cluster()) == mds->get_nodeid(); @@ -879,6 +881,8 @@ void MDCache::handle_inode_update(MInodeUpdate *m) if (wasours != isours) in->dir_auth = old_dir_auth; // ignore dir_auth, it's clearly bogus + dout(7) << "dir_auth for " << *in << " now " << in->dir_auth << " old " << old_dir_auth << " was/is " << wasours << " " << isours << endl; + // done delete m; } @@ -1999,9 +2003,9 @@ void MDCache::import_dir_block(pchar& p, // add add_inode(in); link_inode(idir, dname, in); - dout(7) << " import_dir_block adding " << *in << endl; + dout(7) << " import_dir_block adding " << *in << " istate.dir_auth " << istate->dir_auth << endl; } else { - dout(7) << " import_dir_block already had " << *in << endl; + dout(7) << " import_dir_block already had " << *in << " istate.dir_auth " << istate->dir_auth << endl; in->inode = istate->inode; assert(in->auth == false); -- 2.39.5