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

Issue 936073003: Remove unused errno parsing for leveldb status codes (Closed)

Created:
5 years, 10 months ago by jsbell
Modified:
5 years, 10 months ago
Reviewers:
cmumford
CC:
chromium-reviews, darin-cc_chromium.org, dgrogan, jsbell+idb_chromium.org, jam, cmumford
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unused errno parsing for leveldb status codes When file errors are encountered by the chromium "env" for leveldb, we encode the failing method and the specific error code into the messages returned to leveldb so that when leveldb in turn returns the error to the caller (e.g. Indexed DB) we can update histograms and/or or emit more specific errors (e.g. disk full vs. i/o error). This mechanism used to encode either base::File::Error codes (platform file error) or "errno" codes, depending on which filesystem API was used. Now that we only use base::File we can drop support for parsing the "errno" codes. R=cmumford@chromium.org Committed: https://crrev.com/ab87bce6b23bf1a0e88245959aac54f92a63f1e6 Cr-Commit-Position: refs/heads/master@{#317397}

Patch Set 1 #

Total comments: 3

Patch Set 2 : FILE_OK -> FILE_ERROR_MAX #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -29 lines) Patch
M content/browser/indexed_db/leveldb/leveldb_database.cc View 2 chunks +1 line, -10 lines 0 comments Download
M third_party/leveldatabase/env_chromium.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 3 chunks +8 lines, -12 lines 0 comments Download
M third_party/leveldatabase/env_chromium_unittest.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
jsbell
cmumford@ - please take a look? https://codereview.chromium.org/936073003/diff/1/third_party/leveldatabase/env_chromium_unittest.cc File third_party/leveldatabase/env_chromium_unittest.cc (right): https://codereview.chromium.org/936073003/diff/1/third_party/leveldatabase/env_chromium_unittest.cc#newcode34 third_party/leveldatabase/env_chromium_unittest.cc:34: base::File::Error error = ...
5 years, 10 months ago (2015-02-19 19:56:51 UTC) #1
cmumford
lgtm % nit. I don't feel that strong on FILE_ERROR_MAX vs. FILE_OK - your call. ...
5 years, 10 months ago (2015-02-20 19:21:24 UTC) #2
jsbell
https://codereview.chromium.org/936073003/diff/1/third_party/leveldatabase/env_chromium_unittest.cc File third_party/leveldatabase/env_chromium_unittest.cc (right): https://codereview.chromium.org/936073003/diff/1/third_party/leveldatabase/env_chromium_unittest.cc#newcode34 third_party/leveldatabase/env_chromium_unittest.cc:34: base::File::Error error = base::File::FILE_OK; On 2015/02/20 19:21:24, cmumford wrote: ...
5 years, 10 months ago (2015-02-20 20:03:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/936073003/20001
5 years, 10 months ago (2015-02-20 20:07:44 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-20 20:59:10 UTC) #7
commit-bot: I haz the power
5 years, 10 months ago (2015-02-20 20:59:41 UTC) #8
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ab87bce6b23bf1a0e88245959aac54f92a63f1e6
Cr-Commit-Position: refs/heads/master@{#317397}

Powered by Google App Engine
This is Rietveld 408576698