MCPcopy Index your code
hub / github.com/kopia/kopia / saveLog

Method saveLog

tests/robustness/engine/metadata.go:21–28  ·  view source on GitHub ↗

saveLog saves the engine Log in the metadata store.

(ctx context.Context)

Source from the content-addressed store, hash-verified

19
20// saveLog saves the engine Log in the metadata store.
21func (e *Engine) saveLog(ctx context.Context) error {
22 b, err := json.Marshal(e.EngineLog)
23 if err != nil {
24 return err
25 }
26
27 return e.MetaStore.Store(ctx, engineLogsStoreKey, b)
28}
29
30// loadLog loads the engine log from the metadata store.
31func (e *Engine) loadLog(ctx context.Context) error {

Callers 2

ShutdownMethod · 0.95
TestLogsPersistFunction · 0.95

Calls 1

StoreMethod · 0.65

Tested by 1

TestLogsPersistFunction · 0.76