From 37a4e7750c2143a569dd2bab0bd8d22717ee4c7c Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 27 Sep 2016 20:13:02 +0200 Subject: [PATCH] removed debug info in directory_storage.cc --- libretroshare/src/file_sharing/directory_storage.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/file_sharing/directory_storage.cc b/libretroshare/src/file_sharing/directory_storage.cc index 6d5bab024..612fda1d6 100644 --- a/libretroshare/src/file_sharing/directory_storage.cc +++ b/libretroshare/src/file_sharing/directory_storage.cc @@ -746,9 +746,11 @@ bool RemoteDirectoryStorage::deserialiseUpdateDirEntry(const EntryIndex& indx,co if(!FileListIO::readField(section_data,section_size,section_offset,FILE_LIST_IO_TAG_RECURS_MODIF_TS,most_recent_time)) return false ; if(!FileListIO::readField(section_data,section_size,section_offset,FILE_LIST_IO_TAG_MODIF_TS ,dir_modtime )) return false ; +#ifdef DEBUG_REMOTE_DIRECTORY_STORAGE std::cerr << " dir name : \"" << dir_name << "\"" << std::endl; std::cerr << " most recent time : " << most_recent_time << std::endl; std::cerr << " modification time : " << dir_modtime << std::endl; +#endif // serialise number of subdirs and number of subfiles @@ -757,8 +759,10 @@ bool RemoteDirectoryStorage::deserialiseUpdateDirEntry(const EntryIndex& indx,co if(!FileListIO::readField(section_data,section_size,section_offset,FILE_LIST_IO_TAG_RAW_NUMBER,n_subdirs )) return false ; if(!FileListIO::readField(section_data,section_size,section_offset,FILE_LIST_IO_TAG_RAW_NUMBER,n_subfiles )) return false ; +#ifdef DEBUG_REMOTE_DIRECTORY_STORAGE std::cerr << " number of subdirs : " << n_subdirs << std::endl; std::cerr << " number of files : " << n_subfiles << std::endl; +#endif // serialise subdirs entry indexes @@ -803,8 +807,9 @@ bool RemoteDirectoryStorage::deserialiseUpdateDirEntry(const EntryIndex& indx,co } RS_STACK_MUTEX(mDirStorageMtx) ; - +#ifdef DEBUG_REMOTE_DIRECTORY_STORAGE std::cerr << " updating dir entry..." << std::endl; +#endif // First create the entries for each subdir and each subfile, if needed. if(!mFileHierarchy->updateDirEntry(indx,dir_name,most_recent_time,dir_modtime,subdirs_hashes,subfiles_array))