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

Unified Diff: filter/count/mc.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/mc.go
diff --git a/filter/count/mc.go b/filter/count/mc.go
index 1000140890092084001d18c9cf2eea496baeaf95..7560ad13707b2ec79e0d5d21e55afd0e6c2379d9 100644
--- a/filter/count/mc.go
+++ b/filter/count/mc.go
@@ -71,6 +71,16 @@ func (m *mcCounter) Stats() (*mc.Statistics, error) {
// FilterMC installs a counter Memcache filter in the context.
func FilterMC(c context.Context) (context.Context, *MCCounter) {
state := &MCCounter{}
+ state.NewItem.init()
+ state.AddMulti.init()
+ state.SetMulti.init()
+ state.GetMulti.init()
+ state.DeleteMulti.init()
+ state.CompareAndSwapMulti.init()
+ state.Increment.init()
+ state.Flush.init()
+ state.Stats.init()
+
return mc.AddRawFilters(c, func(ic context.Context, mc mc.RawInterface) mc.RawInterface {
return &mcCounter{state, mc}
}), state
« filter/count/count.go ('K') | « filter/count/gi.go ('k') | filter/count/rds.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698