*** empty log message ***

git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@68 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
sage 2004-08-04 16:30:50 +00:00
parent eba9e7e773
commit 2ce81eca3d
4 changed files with 9 additions and 6 deletions

View File

@ -5,6 +5,7 @@
#include <ext/hash_map>
#include <string>
#include <set>
#include <iostream>
using namespace std;

View File

@ -73,7 +73,7 @@ CDentry* CDir::lookup(string& n) {
int CDir::dentry_authority(string& dn, MDCluster *mdc)
{
if (inode->dir_auth == CDIR_AUTH_PARENT) {
cout << "dir_auth parent at " << *inode << endl;
dout(11) << "dir_auth parent at " << *inode << endl;
return inode->authority( mdc ); // same as my inode
}
if (inode->dir_auth == CDIR_AUTH_HASH) {
@ -82,7 +82,7 @@ int CDir::dentry_authority(string& dn, MDCluster *mdc)
}
// it's explicit for this whole dir
cout << "dir_auth explicit " << inode->dir_auth << " at " << *inode << endl;
dout(11) << "dir_auth explicit " << inode->dir_auth << " at " << *inode << endl;
return inode->dir_auth;
}

View File

@ -10,6 +10,8 @@
#include <string>
#include "include/config.h"
#define dout(x) if (x <= DEBUG_LEVEL) cout << "cinode:"
@ -224,13 +226,13 @@ int CInode::dir_authority(MDCluster *mdc)
{
// explicit
if (dir_auth >= 0) {
cout << "dir_auth explicit " << dir_auth << " at " << *this << endl;
dout(11) << "dir_auth explicit " << dir_auth << " at " << *this << endl;
return dir_auth;
}
// parent
if (dir_auth == CDIR_AUTH_PARENT) {
cout << "dir_auth parent at " << *this << endl;
dout(11) << "dir_auth parent at " << *this << endl;
return authority(mdc);
}

View File

@ -2075,8 +2075,8 @@ void MDCache::import_dir_block(pchar& p,
mds->logger->inc("imex");
}
} else
in->dir_auth = CDIR_AUTH_PARENT;
}
//} else in->dir_auth = CDIR_AUTH_PARENT;
}
}