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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « impl/memory/datastore_test.go ('k') | service/datastore/testable.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package datastore 5 package datastore
6 6
7 import ( 7 import (
8 "golang.org/x/net/context" 8 "golang.org/x/net/context"
9 ) 9 )
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // - []I where i is some interface type. Each elemet of the slice must 135 // - []I where i is some interface type. Each elemet of the slice must
136 // be non-nil, and its underlying type must be either *S or *P. 136 // be non-nil, and its underlying type must be either *S or *P.
137 // 137 //
138 // If items in src resolve to Incomplete keys, PutMulti will write the 138 // If items in src resolve to Incomplete keys, PutMulti will write the
139 // resolved keys back to the items in src. 139 // resolved keys back to the items in src.
140 PutMulti(src interface{}) error 140 PutMulti(src interface{}) error
141 141
142 // DeleteMulti removes items from the datastore. 142 // DeleteMulti removes items from the datastore.
143 DeleteMulti(keys []Key) error 143 DeleteMulti(keys []Key) error
144 144
145 // Testable returns the Testable interface for the implementation, or ni l if
146 // there is none.
147 Testable() Testable
Vadim Sh. 2015/09/14 18:16:18 I've just added it to interface definition and it
148
145 // Raw returns the underlying RawInterface. The Interface and RawInterfa ce may 149 // Raw returns the underlying RawInterface. The Interface and RawInterfa ce may
146 // be used interchangably; there's no danger of interleaving access to t he 150 // be used interchangably; there's no danger of interleaving access to t he
147 // datastore via the two. 151 // datastore via the two.
148 Raw() RawInterface 152 Raw() RawInterface
149 } 153 }
OLDNEW
« 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