Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nutsdb/nutsdb
/ moveNodeToFront
Method
moveNodeToFront
internal/fileio/fd_manager.go:182–185 ·
view source on GitHub ↗
(node *FdInfo)
Source
from the content-addressed store, hash-verified
180
}
181
182
func
(list *doubleLinkedList) moveNodeToFront(node *FdInfo) {
183
list.removeNode(node)
184
list.addNode(node)
185
}
186
187
func
(fdm *FdManager) cleanUselessFd() error {
188
cleanNums := fdm.cleanThresholdNums
Callers
2
GetFd
Method · 0.80
TestDoubleLinkedList_All
Function · 0.80
Calls
2
removeNode
Method · 0.95
addNode
Method · 0.95
Tested by
1
TestDoubleLinkedList_All
Function · 0.64