MCPcopy
hub / github.com/syncthing/syncthing / AllLocalBlocksWithHash

Method AllLocalBlocksWithHash

internal/db/interface.go:74–74  ·  view source on GitHub ↗
(folder string, hash []byte)

Source from the content-addressed store, hash-verified

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
77 DropBlockIndex(folder string) error

Callers 13

TestCopierCleanupFunction · 0.65
copyBlockFromFolderMethod · 0.65
TestInsertLargeFileFunction · 0.65
TestBlocksInsertedFunction · 0.65
BenchmarkUpdateFunction · 0.65
TestBlocksFunction · 0.65
TestBlocksDeletedFunction · 0.65
TestDropBlockIndexFunction · 0.65
TestPopulateBlockIndexFunction · 0.65

Implementers 1

DBinternal/db/sqlite/db_open.go

Calls

no outgoing calls

Tested by 10

TestCopierCleanupFunction · 0.52
TestInsertLargeFileFunction · 0.52
TestBlocksInsertedFunction · 0.52
BenchmarkUpdateFunction · 0.52
TestBlocksFunction · 0.52
TestBlocksDeletedFunction · 0.52
TestDropBlockIndexFunction · 0.52
TestPopulateBlockIndexFunction · 0.52