MCPcopy Create free account
hub / github.com/docker/docker-agent / UpdateSession

Method UpdateSession

pkg/server/session_models_test.go:364–372  ·  view source on GitHub ↗
(ctx context.Context, sess *session.Session)

Source from the content-addressed store, hash-verified

362}
363
364func (s *failingStore) UpdateSession(ctx context.Context, sess *session.Session) error {
365 s.mu.Lock()
366 fail := s.failUpdate
367 s.mu.Unlock()
368 if fail {
369 return errors.New("synthetic store failure")
370 }
371 return s.Store.UpdateSession(ctx, sess)
372}
373
374// When the session store rejects the persistence write, the in-memory
375// session and the runtime override must both be rolled back so the next

Callers

nothing calls this directly

Calls 4

UpdateSessionMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45
NewMethod · 0.45

Tested by

no test coverage detected