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

Issue 1286093007: Fix key encoding to be null terminated (Closed)

Created:
5 years, 4 months ago by iannucci
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://github.com/luci/gae.git@add_iterator
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix key encoding to be null terminated This will allow the use of automatic indicies to fulfil basic ancestor queries. Otherwise keys with many components sort after keys with few components (instead of lexicographically per token) R=dnj@google.com, tandrii@chromium.org, dnj@chromium.org, estaab@chromium.org, vadimsh@chromium.org BUG= Committed: https://github.com/luci/gae/commit/7c292a416ca39a3232cc5d46fe82c3f1a16f1c6a

Patch Set 1 #

Total comments: 1

Patch Set 2 : Set limit to > instead of >= #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -19 lines) Patch
M service/datastore/serialize/serialize.go View 1 4 chunks +20 lines, -14 lines 0 comments Download
M service/datastore/serialize/serialize_test.go View 5 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
iannucci
5 years, 4 months ago (2015-08-15 18:32:15 UTC) #1
tandrii(chromium)
lgtm
5 years, 4 months ago (2015-08-15 18:54:36 UTC) #2
dnj (Google)
lgtm w/ nit https://codereview.chromium.org/1286093007/diff/1/service/datastore/serialize/serialize.go File service/datastore/serialize/serialize.go (right): https://codereview.chromium.org/1286093007/diff/1/service/datastore/serialize/serialize.go#newcode107 service/datastore/serialize/serialize.go:107: if len(toks)+1 >= ReadKeyNumToksReasonableLimit { nit: ...
5 years, 4 months ago (2015-08-15 19:06:55 UTC) #4
iannucci
On 2015/08/15 19:06:55, dnj (Google) wrote: > lgtm w/ nit > > https://codereview.chromium.org/1286093007/diff/1/service/datastore/serialize/serialize.go > File ...
5 years, 4 months ago (2015-08-15 21:56:13 UTC) #5
iannucci
5 years, 4 months ago (2015-08-15 21:57:06 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7c292a416ca39a3232cc5d46fe82c3f1a16f1c6a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698