MCPcopy
hub / github.com/syncthing/syncthing / AllNeededGlobalFiles

Method AllNeededGlobalFiles

internal/db/interface.go:73–73  ·  view source on GitHub ↗
(folder string, device protocol.DeviceID, order config.PullOrder, limit, offset int)

Source from the content-addressed store, hash-verified

71 AllLocalFilesWithPrefix(folder string, device protocol.DeviceID, prefix string) (iter.Seq[protocol.FileInfo], func() error)
72 AllLocalFilesWithBlocksHash(folder string, h []byte) (iter.Seq[FileMetadata], func() error)
73 AllNeededGlobalFiles(folder string, device protocol.DeviceID, order config.PullOrder, limit, offset int) (iter.Seq[protocol.FileInfo], func() error)
74 AllLocalBlocksWithHash(folder string, hash []byte) (iter.Seq[BlockMapEntry], func() error)
75
76 // Block index management

Callers 15

NeedFolderFilesMethod · 0.65
RemoteNeedFolderFilesMethod · 0.65
processNeededMethod · 0.65
pullMethod · 0.65
overrideMethod · 0.65
AllNeededGlobalFilesMethod · 0.65
TestBasicsFunction · 0.65
BenchmarkUpdateFunction · 0.65
TestNeedFunction · 0.65
TestDontNeedIgnoredFunction · 0.65

Implementers 1

DBinternal/db/sqlite/db_open.go

Calls

no outgoing calls

Tested by 11

TestBasicsFunction · 0.52
BenchmarkUpdateFunction · 0.52
TestNeedFunction · 0.52
TestDontNeedIgnoredFunction · 0.52
TestNeedPaginationFunction · 0.52