//载入cache文件列表 func (this *MongoDbOutputer) reloadFileCache() { list := lib.GetFilelist(this.file_mem_folder_name) for _, filename := range list { loglib.Info("reloading:" + filename) this.fileList.PushBack(filename) } }
//should be run by once func (s *Sender) reloadFileCache() { list := lib.GetFilelist(s.file_mem_folder_name) for _, filename := range list { // s.fileCacheList.PushBack(filename) loglib.Info("reloading:" + filename) fileList.PushBack(filename) } }