mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-29 19:11:24 -04:00
suppressed debugging info to get back to fast directory browsing
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1518 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4720de4f70
commit
d78ee60e30
2 changed files with 6 additions and 2 deletions
|
@ -40,7 +40,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
//***********
|
//***********
|
||||||
#define FIM_DEBUG 1
|
//#define FIM_DEBUG 1
|
||||||
// ***********/
|
// ***********/
|
||||||
|
|
||||||
FileIndexMonitor::FileIndexMonitor(CacheStrapper *cs, NotifyBase *cb_in,std::string cachedir, std::string pid)
|
FileIndexMonitor::FileIndexMonitor(CacheStrapper *cs, NotifyBase *cb_in,std::string cachedir, std::string pid)
|
||||||
|
@ -983,7 +983,9 @@ int FileIndexMonitor::RequestDirDetails(void *ref, DirDetails &details, uint32_t
|
||||||
|
|
||||||
if(last_dir != NULL)
|
if(last_dir != NULL)
|
||||||
{
|
{
|
||||||
|
#ifdef FIM_DEBUG
|
||||||
std::cerr << "FileIndexMonitor::RequestDirDetails: parent->name=" << last_dir->name << std::endl ;
|
std::cerr << "FileIndexMonitor::RequestDirDetails: parent->name=" << last_dir->name << std::endl ;
|
||||||
|
#endif
|
||||||
std::map<std::string,SharedDirInfo>::const_iterator it = directoryMap.find(last_dir->name) ;
|
std::map<std::string,SharedDirInfo>::const_iterator it = directoryMap.find(last_dir->name) ;
|
||||||
|
|
||||||
if(it == directoryMap.end())
|
if(it == directoryMap.end())
|
||||||
|
@ -992,7 +994,9 @@ int FileIndexMonitor::RequestDirDetails(void *ref, DirDetails &details, uint32_t
|
||||||
{
|
{
|
||||||
details.flags |= (( (it->second.shareflags & RS_FILE_HINTS_BROWSABLE)>0)?DIR_FLAGS_BROWSABLE:0) ;
|
details.flags |= (( (it->second.shareflags & RS_FILE_HINTS_BROWSABLE)>0)?DIR_FLAGS_BROWSABLE:0) ;
|
||||||
details.flags |= (( (it->second.shareflags & RS_FILE_HINTS_NETWORK_WIDE)>0)?DIR_FLAGS_NETWORK_WIDE:0) ;
|
details.flags |= (( (it->second.shareflags & RS_FILE_HINTS_NETWORK_WIDE)>0)?DIR_FLAGS_NETWORK_WIDE:0) ;
|
||||||
|
#ifdef FIM_DEBUG
|
||||||
std::cerr << "flags = " << details.flags << std::endl ;
|
std::cerr << "flags = " << details.flags << std::endl ;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
|
|
||||||
#include <openssl/sha.h>
|
#include <openssl/sha.h>
|
||||||
|
|
||||||
#define FI_DEBUG 1
|
|
||||||
/****
|
/****
|
||||||
|
#define FI_DEBUG 1
|
||||||
* #define FI_DEBUG_ALL 1
|
* #define FI_DEBUG_ALL 1
|
||||||
****/
|
****/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue