mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
*** empty log message ***
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@68 29311d96-e01e-0410-9327-a35deaab8ce9
This commit is contained in:
parent
eba9e7e773
commit
2ce81eca3d
@ -5,6 +5,7 @@
|
||||
#include <ext/hash_map>
|
||||
#include <string>
|
||||
#include <set>
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user