MCPcopy
hub / github.com/syncthing/syncthing / DropAllIndexIDs

Method DropAllIndexIDs

internal/db/sqlite/folderdb_indexid.go:84–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func (s *folderDB) DropAllIndexIDs() error {
85 s.updateLock.Lock()
86 defer s.updateLock.Unlock()
87 _, err := s.stmt(`DELETE FROM indexids`).Exec()
88 return wrap(err)
89}
90
91func (s *folderDB) GetDeviceSequence(device protocol.DeviceID) (int64, error) {
92 var res sql.NullInt64

Callers

nothing calls this directly

Calls 4

UnlockMethod · 0.80
stmtMethod · 0.80
wrapFunction · 0.70
ExecMethod · 0.65

Tested by

no test coverage detected