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

Unified Diff: state/relationunit.go

Issue 9175043: state: testable transactions
Patch Set: state: testable transactions Created 11 years, 10 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/relation.go ('k') | state/service.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/relationunit.go
=== modified file 'state/relationunit.go'
--- state/relationunit.go 2013-05-31 01:02:53 +0000
+++ state/relationunit.go 2013-06-13 07:59:07 +0000
@@ -128,7 +128,7 @@
}
// Now run the complete transaction, or figure out why we can't.
- if err := ru.st.runner.Run(ops, "", nil); err != txn.ErrAborted {
+ if err := ru.st.runTransaction(ops); err != txn.ErrAborted {
return err
}
if count, err := ru.st.relationScopes.FindId(ruKey).Count(); err != nil {
@@ -284,7 +284,7 @@
}
ops = append(ops, relOps...)
}
- if err = ru.st.runner.Run(ops, "", nil); err != txn.ErrAborted {
+ if err = ru.st.runTransaction(ops); err != txn.ErrAborted {
if err != nil {
return fmt.Errorf("cannot leave scope for %s: %v", desc, err)
}
« no previous file with comments | « state/relation.go ('k') | state/service.go » ('j') | no next file with comments »

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