MCPcopy
hub / github.com/syncthing/syncthing / WithSkipBlockIndex

Function WithSkipBlockIndex

internal/db/interface.go:40–44  ·  view source on GitHub ↗

WithSkipBlockIndex skips inserting individual blocks into the block index (the "blocks" table). Blocklists are still stored.

()

Source from the content-addressed store, hash-verified

38// WithSkipBlockIndex skips inserting individual blocks into the block
39// index (the "blocks" table). Blocklists are still stored.
40func WithSkipBlockIndex() UpdateOption {
41 return func(o *UpdateOptions) {
42 o.SkipBlockIndex = true
43 }
44}
45
46type DB interface {
47 // Create a service that performs database maintenance periodically (no

Callers 2

updateLocalsMethod · 0.92

Calls

no outgoing calls

Tested by 1