MCPcopy 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
182func (list *doubleLinkedList) moveNodeToFront(node *FdInfo) {
183 list.removeNode(node)
184 list.addNode(node)
185}
186
187func (fdm *FdManager) cleanUselessFd() error {
188 cleanNums := fdm.cleanThresholdNums

Callers 2

GetFdMethod · 0.80
TestDoubleLinkedList_AllFunction · 0.80

Calls 2

removeNodeMethod · 0.95
addNodeMethod · 0.95

Tested by 1

TestDoubleLinkedList_AllFunction · 0.64