diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-01 01:07:14 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-01 01:07:14 +0000 |
commit | 5c672eed6432fd4bcf02e83670f9d4e5d9994456 (patch) | |
tree | c4f5bd7bc7a82ba740acba4c3dab050e2baa5fef /pkg/state/decode.go | |
parent | b8e50d110eb58d1b85b93968358d689dd9250d2d (diff) | |
parent | a99d3479a84ca86843e500dbdf58db0af389b536 (diff) |
Merge release-20190806.1-358-ga99d347 (automated)
Diffstat (limited to 'pkg/state/decode.go')
-rw-r--r-- | pkg/state/decode.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/state/decode.go b/pkg/state/decode.go index 47e6b878a..590c241a3 100644 --- a/pkg/state/decode.go +++ b/pkg/state/decode.go @@ -16,6 +16,7 @@ package state import ( "bytes" + "context" "encoding/binary" "errors" "fmt" @@ -133,6 +134,9 @@ func (os *objectState) findCycle() []*objectState { // to ensure that all callbacks are executed, otherwise the callback graph was // not acyclic. type decodeState struct { + // ctx is the decode context. + ctx context.Context + // objectByID is the set of objects in progress. objectsByID map[uint64]*objectState |