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

Unified Diff: service/datastore/interface.go

Issue 1335083002: Add emulation of transaction retries to memory impl of RunInTransaction. (Closed) Base URL: https://github.com/luci/gae.git@master
Patch Set: behave identically to prod retry logic 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 | « impl/memory/datastore_test.go ('k') | service/datastore/testable.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/interface.go
diff --git a/service/datastore/interface.go b/service/datastore/interface.go
index a01c219f6e546371687e33f5fd6ce0066668e9e7..33b1f0f2269d5bcc03f4d84c108af86c3725a17b 100644
--- a/service/datastore/interface.go
+++ b/service/datastore/interface.go
@@ -142,6 +142,10 @@ type Interface interface {
// DeleteMulti removes items from the datastore.
DeleteMulti(keys []Key) error
+ // Testable returns the Testable interface for the implementation, or nil if
+ // there is none.
+ Testable() Testable
Vadim Sh. 2015/09/14 18:16:18 I've just added it to interface definition and it
+
// Raw returns the underlying RawInterface. The Interface and RawInterface may
// be used interchangably; there's no danger of interleaving access to the
// datastore via the two.
« no previous file with comments | « impl/memory/datastore_test.go ('k') | service/datastore/testable.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698