Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1785)

Unified Diff: state/service.go

Issue 8510043: state: use one schema for status
Patch Set: state: use one schema for status Created 11 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « state/machine.go ('k') | state/state.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/service.go
=== modified file 'state/service.go'
--- state/service.go 2013-04-03 14:15:39 +0000
+++ state/service.go 2013-04-08 09:10:18 +0000
@@ -525,7 +525,9 @@
Life: Alive,
Principal: principalName,
}
- usdoc := &unitStatusDoc{params.UnitPending, ""}
+ sdoc := statusDoc{
+ Status: string(params.UnitPending),
+ }
ops := []txn.Op{
{
C: s.st.units.Name,
@@ -533,7 +535,7 @@
Assert: txn.DocMissing,
Insert: udoc,
},
- createStatusOp(s.st, globalKey, usdoc),
+ createStatusOp(s.st, globalKey, sdoc),
{
C: s.st.services.Name,
Id: s.doc.Name,
« no previous file with comments | « state/machine.go ('k') | state/state.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b