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

Unified Diff: impl/memory/datastore_query_execution.go

Issue 1309803004: Add transaction buffer filter. (Closed) Base URL: https://github.com/luci/gae.git@add_query_support
Patch Set: one more test 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
Index: impl/memory/datastore_query_execution.go
diff --git a/impl/memory/datastore_query_execution.go b/impl/memory/datastore_query_execution.go
index 975b0f158f2b235dcf86bab9c8c23d277f0d93f9..bf06615d4f2df1e2d3f1eca51c60665d7686b4ec 100644
--- a/impl/memory/datastore_query_execution.go
+++ b/impl/memory/datastore_query_execution.go
@@ -143,7 +143,7 @@ func parseSuffix(ns string, suffixFormat []ds.IndexColumn, suffix []byte, count
err := error(nil)
for i := range decoded {
- if count > 0 && i > count {
+ if count >= 0 && i >= count {
break
}
needInvert := suffixFormat[i].Descending

Powered by Google App Engine
This is Rietveld 408576698