diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-08-24 15:15:56 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2019-01-04 09:51:09 -0500 |
commit | d4b2f116018e1d8e6a3c4f80f30db45934428c6b (patch) | |
tree | 66b020a3db3824d4b5c9831a1b41043aa59a5150 /libpod/pod_easyjson.go | |
parent | 3de560053f4b391c8386554160f61a2a086c1564 (diff) | |
download | podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.tar.gz podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.tar.bz2 podman-d4b2f116018e1d8e6a3c4f80f30db45934428c6b.zip |
Convert pods to SHM locks
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Diffstat (limited to 'libpod/pod_easyjson.go')
-rw-r--r-- | libpod/pod_easyjson.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libpod/pod_easyjson.go b/libpod/pod_easyjson.go index 8ea9a5e72..71862dad0 100644 --- a/libpod/pod_easyjson.go +++ b/libpod/pod_easyjson.go @@ -501,6 +501,8 @@ func easyjsonBe091417DecodeGithubComContainersLibpodLibpod4(in *jlexer.Lexer, ou if data := in.Raw(); in.Ok() { in.AddError((out.CreatedTime).UnmarshalJSON(data)) } + case "lockID": + out.LockID = uint32(in.Uint32()) default: in.SkipRecursive() } @@ -675,6 +677,16 @@ func easyjsonBe091417EncodeGithubComContainersLibpodLibpod4(out *jwriter.Writer, } out.Raw((in.CreatedTime).MarshalJSON()) } + { + const prefix string = ",\"lockID\":" + if first { + first = false + out.RawString(prefix[1:]) + } else { + out.RawString(prefix) + } + out.Uint32(uint32(in.LockID)) + } out.RawByte('}') } |