mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	roots: remove open_root_cache correctly
BEESNOTE puts a message on the status message stack. BEESINFO logs a message with rate limiting. The message that was flooding the logs was coming from BEESINFO not BEESNOTE. Fix earlier commit which removed the wrong message. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -316,6 +316,7 @@ Fd
 | 
				
			|||||||
BeesRoots::open_root_nocache(uint64_t rootid)
 | 
					BeesRoots::open_root_nocache(uint64_t rootid)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	BEESTRACE("open_root_nocache " << rootid);
 | 
						BEESTRACE("open_root_nocache " << rootid);
 | 
				
			||||||
 | 
						BEESNOTE("open_root_nocache " << rootid);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Stop recursion at the root of the filesystem tree
 | 
						// Stop recursion at the root of the filesystem tree
 | 
				
			||||||
	if (rootid == BTRFS_FS_TREE_OBJECTID) {
 | 
						if (rootid == BTRFS_FS_TREE_OBJECTID) {
 | 
				
			||||||
@@ -388,7 +389,7 @@ BeesRoots::open_root_nocache(uint64_t rootid)
 | 
				
			|||||||
				THROW_CHECK2(runtime_error, new_root_id, rootid, new_root_id == rootid);
 | 
									THROW_CHECK2(runtime_error, new_root_id, rootid, new_root_id == rootid);
 | 
				
			||||||
				Stat st(rv);
 | 
									Stat st(rv);
 | 
				
			||||||
				THROW_CHECK1(runtime_error, st.st_ino, st.st_ino == BTRFS_FIRST_FREE_OBJECTID);
 | 
									THROW_CHECK1(runtime_error, st.st_ino, st.st_ino == BTRFS_FIRST_FREE_OBJECTID);
 | 
				
			||||||
				BEESINFO("open_root_nocache " << rootid << ": " << name_fd(rv));
 | 
									// BEESINFO("open_root_nocache " << rootid << ": " << name_fd(rv));
 | 
				
			||||||
				return rv;
 | 
									return rv;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user