MCPcopy
hub / github.com/syncthing/syncthing / PopulateBlockIndex

Method PopulateBlockIndex

internal/db/sqlite/db_folderdb.go:118–124  ·  view source on GitHub ↗
(folder string)

Source from the content-addressed store, hash-verified

116}
117
118func (s *DB) PopulateBlockIndex(folder string) error {
119 fdb, err := s.getFolderDB(folder, true)
120 if err != nil {
121 return err
122 }
123 return fdb.PopulateBlockIndex()
124}
125
126func (s *DB) GetDeviceFile(folder string, device protocol.DeviceID, file string) (protocol.FileInfo, bool, error) {
127 fdb, err := s.getFolderDB(folder, false)

Callers

nothing calls this directly

Implementers 1

DBinternal/db/sqlite/db_open.go

Calls 2

getFolderDBMethod · 0.95
PopulateBlockIndexMethod · 0.65

Tested by

no test coverage detected