mirror of
https://github.com/ceph/ceph
synced 2025-01-29 06:24:03 +00:00
mds: fix dumpcache
This commit is contained in:
parent
6285b61d91
commit
6ea303014e
@ -8600,11 +8600,13 @@ void MDCache::dump_cache(const char *fn)
|
||||
for (hash_map<vinodeno_t,CInode*>::iterator it = inode_map.begin();
|
||||
it != inode_map.end();
|
||||
it++) {
|
||||
CInode *in = it->second;
|
||||
myfile << *in << std::endl;
|
||||
|
||||
list<CDir*> dfs;
|
||||
it->second->get_dirfrags(dfs);
|
||||
in->get_dirfrags(dfs);
|
||||
for (list<CDir*>::iterator p = dfs.begin(); p != dfs.end(); ++p) {
|
||||
CDir *dir = *p;
|
||||
myfile << *dir->inode << std::endl;
|
||||
myfile << " " << *dir << std::endl;
|
||||
|
||||
for (CDir::map_t::iterator q = dir->items.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user