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

Issue 7044018: This adds a Flush to the session backend to help with data corruption (Closed)

Created:
9 years, 7 months ago by Greg Spencer (Chromium)
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, darin-cc_chromium.org, zel
Visibility:
Public.

Description

This adds a Flush to the session backend to help with data corruption at ChromeOS shutdown. We're seeing crashes due to corrupted history items in the session data on ChromeOS, and this is a bandaid to help reduce them. It's not the real solution, which is to have more corruption-robust history item storage and recovery, but it shouldn't cause any harm. Our supposition here is that corruption is occurring because we shutdown while session data hasn't been flushed to the disk, thus corrupting the history data, which is fragile, and we crash the next time we read in the session. This CL will help because we flush after appending system data. Other CLs will help to clean up the bad history data, and be more robust in the case of corruption. BUG=chromium-os:15478, chromium-os:15350 TEST=Loaded existing current state, exited, reloaded, ran unit test. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86141

Patch Set 1 #

Total comments: 1

Patch Set 2 : Reverting everything except the Flush. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M chrome/browser/sessions/session_backend.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Greg Spencer (Chromium)
9 years, 7 months ago (2011-05-18 22:13:45 UTC) #1
sky
The session_backend changes LGTM. I'm not sure what effects ignoring null items/children have on the ...
9 years, 7 months ago (2011-05-18 22:39:07 UTC) #2
Greg Spencer (Chromium)
9 years, 7 months ago (2011-05-20 00:09:37 UTC) #3
On 2011/05/18 22:39:07, sky wrote:
> The session_backend changes LGTM.

OK, I'm going to submit the rest in another change.  I've removed all the other
changes except for the "Flush" I added in session_backend.cc

Powered by Google App Engine
This is Rietveld 408576698