Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: impl/memory/context.go

Issue 1347843002: Make SetTransactionRetryCount actually work. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | impl/memory/datastore.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: impl/memory/context.go
diff --git a/impl/memory/context.go b/impl/memory/context.go
index 8859ebb15c491f7ef2372158f0c2fbd1ed095633..9b388e70fc761a01eca96c7f23a9375344f1d0b6 100644
--- a/impl/memory/context.go
+++ b/impl/memory/context.go
@@ -169,7 +169,7 @@ func (d *dsImpl) RunInTransaction(f func(context.Context) error, o *ds.Transacti
attempts = o.Attempts
}
for attempt := 0; attempt < attempts; attempt++ {
- if err := loopBody(attempt >= d.txnFakeRetry); err != ds.ErrConcurrentTransaction {
+ if err := loopBody(attempt >= d.data.txnFakeRetry); err != ds.ErrConcurrentTransaction {
return err
}
}
« no previous file with comments | « no previous file | impl/memory/datastore.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698