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

Issue 691803003: Do not DCHECK on SimpleCache deletion-while-closing. (Closed)

Created:
6 years, 1 month ago by gavinp
Modified:
6 years, 1 month ago
Reviewers:
jkarlin
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Do not DCHECK on SimpleCache deletion-while-closing. The cache should be safe to delete immediately after calling the destructor. This means that failures from files going missing while the index is being serialized are acceptable; if we are going to actually restart this cache, they can be dealt with at startup anyway. R=jkarlin@chromium.org BUG=416940 Committed: https://crrev.com/8e33c7610574ebe3466177f227b1c17e47f4f731 Cr-Commit-Position: refs/heads/master@{#302272}

Patch Set 1 #

Patch Set 2 : remove bigger example test #

Total comments: 7

Patch Set 3 : remediate #

Patch Set 4 : lint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -3 lines) Patch
M net/disk_cache/backend_unittest.cc View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index_file.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
gavinp
jkarlin: PTAL https://codereview.chromium.org/691803003/diff/20001/net/disk_cache/simple/simple_index_file.cc File net/disk_cache/simple/simple_index_file.cc (right): https://codereview.chromium.org/691803003/diff/20001/net/disk_cache/simple/simple_index_file.cc#newcode74 net/disk_cache/simple/simple_index_file.cc:74: File::FLAG_CREATE | File::FLAG_WRITE | File::FLAG_SHARE_DELETE); This change ...
6 years, 1 month ago (2014-10-30 18:59:20 UTC) #1
jkarlin
https://codereview.chromium.org/691803003/diff/20001/net/disk_cache/backend_unittest.cc File net/disk_cache/backend_unittest.cc (right): https://codereview.chromium.org/691803003/diff/20001/net/disk_cache/backend_unittest.cc#newcode3487 net/disk_cache/backend_unittest.cc:3487: // NOTE: IF THIS TEST IS FLAKY THEN IT ...
6 years, 1 month ago (2014-10-30 19:19:24 UTC) #2
gavinp
jkarlin: remediated. Went with a TODO on your good DCHECK suggestion. What do you think? ...
6 years, 1 month ago (2014-10-31 13:55:54 UTC) #3
jkarlin
lgtm
6 years, 1 month ago (2014-10-31 13:57:57 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/691803003/60001
6 years, 1 month ago (2014-10-31 14:55:25 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
6 years, 1 month ago (2014-10-31 15:42:22 UTC) #7
commit-bot: I haz the power
6 years, 1 month ago (2014-10-31 15:42:56 UTC) #8
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/8e33c7610574ebe3466177f227b1c17e47f4f731
Cr-Commit-Position: refs/heads/master@{#302272}

Powered by Google App Engine
This is Rietveld 408576698