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

Unified Diff: filter/count/rds.go

Issue 1306373002: filter/count: Fix alignment on 32-bit systems. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Use &...{} instead of new. Created 5 years, 4 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
Index: filter/count/rds.go
diff --git a/filter/count/rds.go b/filter/count/rds.go
index 5e40b6f758ec3752c4e338d15916443420b61a61..86c8f5e6f935cef79229c488c7e73e9bf7d5b18d 100644
--- a/filter/count/rds.go
+++ b/filter/count/rds.go
@@ -78,6 +78,16 @@ func (r *dsCounter) Testable() ds.Testable {
// FilterRDS installs a counter datastore filter in the context.
func FilterRDS(c context.Context) (context.Context, *DSCounter) {
state := &DSCounter{}
+ state.NewKey.init()
+ state.DecodeCursor.init()
+ state.DecodeKey.init()
+ state.NewQuery.init()
+ state.RunInTransaction.init()
+ state.Run.init()
+ state.DeleteMulti.init()
+ state.GetMulti.init()
+ state.PutMulti.init()
+
return ds.AddRawFilters(c, func(ic context.Context, ds ds.RawInterface) ds.RawInterface {
return &dsCounter{state, ds}
}), state
« filter/count/count.go ('K') | « filter/count/mc.go ('k') | filter/count/tq.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698