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

Issue 2498463003: Fix a bug where deletions weren't updating the raw Kind index. (Closed)

Created:
4 years, 1 month ago by dnj
Modified:
4 years, 1 month ago
Reviewers:
iannucci
CC:
chromium-reviews, infra-reviews+luci-gae_chromium.org
Target Ref:
refs/heads/master
Project:
luci-gae
Visibility:
Public.

Description

Fix a bug where deletions weren't updating the raw Kind index. This manifested as "limit" and "offset" fields being seemingly ignored. The real reason for this is because the query iterator was (correctly) skipping index entries that weren't present in head, but counting them against the limit/offset. BUG=None TEST=None Committed: https://github.com/luci/gae/commit/04506f4321aedd2dd1e8d08b68e1ff27a8a82894

Patch Set 1 : impl/memory: query limits/offsets count deleted #

Total comments: 5

Patch Set 2 : Fix #

Total comments: 3

Patch Set 3 : Comments, short path. #

Patch Set 4 : rebase #

Patch Set 5 : Cleaner. #

Total comments: 1

Patch Set 6 : Comments, review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -22 lines) Patch
M impl/memory/datastore_index.go View 1 2 3 4 5 3 chunks +18 lines, -2 lines 0 comments Download
M impl/memory/datastore_query_execution_test.go View 1 2 3 4 3 chunks +34 lines, -6 lines 0 comments Download
M impl/memory/gkvlite_utils.go View 1 2 3 4 5 4 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
dnj
PTAL. I think this is the right way to do things. LMK if I'm barking ...
4 years, 1 month ago (2016-11-11 08:37:53 UTC) #3
iannucci
good find :) lgtm https://codereview.chromium.org/2498463003/diff/40001/impl/memory/datastore_index.go File impl/memory/datastore_index.go (right): https://codereview.chromium.org/2498463003/diff/40001/impl/memory/datastore_index.go#newcode262 impl/memory/datastore_index.go:262: func updateIndexes(store memStore, key *ds.Key, ...
4 years, 1 month ago (2016-11-12 00:05:47 UTC) #6
iannucci
lgtm https://codereview.chromium.org/2498463003/diff/90001/impl/memory/datastore_index.go File impl/memory/datastore_index.go (right): https://codereview.chromium.org/2498463003/diff/90001/impl/memory/datastore_index.go#newcode51 impl/memory/datastore_index.go:51: // specifically deletion. typo?
4 years, 1 month ago (2016-11-12 00:19:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2498463003/110001
4 years, 1 month ago (2016-11-12 00:20:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2498463003/110001
4 years, 1 month ago (2016-11-12 00:23:09 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-12 00:27:16 UTC) #16
Message was sent while issue was closed.
Committed patchset #6 (id:110001) as
https://github.com/luci/gae/commit/04506f4321aedd2dd1e8d08b68e1ff27a8a82894

Powered by Google App Engine
This is Rietveld 408576698