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

Issue 1022983004: leveldb: Env no longer implicitly syncs dir for all newly created files. (Closed)

Created:
5 years, 9 months ago by cmumford
Modified:
5 years, 9 months ago
Reviewers:
jsbell
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

leveldb: Env no longer implicitly syncs dir for all newly created files. A while back ChromiumEnv was enhanced to sync a directory the first time a newly created file was written to. This was a speculative change added in an attempt to resolve database corruptions caused by missing files. Since no improvements were seen as a result of this change it is now being removed. Additionally leveldb's implicit contract for WritableFile::Sync() is that it shall sync the directory if that WritableFile is for a manifest - ChromiumEnv did not do that. BUG=417769 Committed: https://crrev.com/62520d739a3b95426082fdf059aa262033e795d7 Cr-Commit-Position: refs/heads/master@{#321904}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed unnecessary "else". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -103 lines) Patch
M third_party/leveldatabase/env_chromium.h View 3 chunks +1 line, -16 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 9 chunks +8 lines, -36 lines 0 comments Download
M third_party/leveldatabase/env_chromium_unittest.cc View 2 chunks +0 lines, -51 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
cmumford
I started creating a Finch experiment for this, but think that with only 6 corruptions/day ...
5 years, 9 months ago (2015-03-23 22:32:35 UTC) #2
jsbell
lgtm https://codereview.chromium.org/1022983004/diff/1/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/1022983004/diff/1/third_party/leveldatabase/env_chromium.cc#newcode314 third_party/leveldatabase/env_chromium.cc:314: else Nit: Remove else since there's an early ...
5 years, 9 months ago (2015-03-23 22:42:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1022983004/20001
5 years, 9 months ago (2015-03-23 22:52:23 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 9 months ago (2015-03-24 00:11:39 UTC) #7
commit-bot: I haz the power
5 years, 9 months ago (2015-03-24 00:12:37 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/62520d739a3b95426082fdf059aa262033e795d7
Cr-Commit-Position: refs/heads/master@{#321904}

Powered by Google App Engine
This is Rietveld 408576698