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

Issue 710373002: LevelDB: Using base::File for all file I/O (Closed)

Created:
6 years, 1 month ago by cmumford
Modified:
6 years, 1 month ago
Reviewers:
brettw, dgrogan, jsbell
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

LevelDB: Using base::File for all file I/O Eliminated platform specific (stdio & Windows) File I/O calls and replaced with the use of base::File. This makes Chrome's Env (nearly) platform agnostic while simplifying the implementation. BUG=431914 Committed: https://crrev.com/bf82318b8929b07d7bb0abce2729c5a83b9dbfcb Cr-Commit-Position: refs/heads/master@{#305020}

Patch Set 1 #

Patch Set 2 : Deleted ErrnoWin32 test #

Total comments: 24

Patch Set 3 : File set #1 comments: -virtual, -errno, misc. #

Patch Set 4 : Guarded call to base::GetMaxFds with #if defined(OS_POSIX) #

Total comments: 2

Patch Set 5 : FileEnumerator to platform specific directory enumeration #

Patch Set 6 : sorted headers, git cl format. #

Patch Set 7 : iterator -> range based for loop + GetDirectoryEntries cleanup #

Total comments: 6

Patch Set 8 : Comment for GetDirectoryEntries, using ReadAtCurrentPosNoBestEffort #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -1059 lines) Patch
M base/process/process_metrics.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M build/secondary/third_party/leveldatabase/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/leveldatabase/README.chromium View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/leveldatabase/chromium_logger.h View 4 chunks +5 lines, -11 lines 0 comments Download
M third_party/leveldatabase/env_chromium.h View 1 2 4 chunks +19 lines, -17 lines 0 comments Download
M third_party/leveldatabase/env_chromium.cc View 1 2 3 4 5 6 7 8 chunks +336 lines, -67 lines 0 comments Download
D third_party/leveldatabase/env_chromium_stdio.h View 1 chunk +0 lines, -76 lines 0 comments Download
D third_party/leveldatabase/env_chromium_stdio.cc View 1 chunk +0 lines, -389 lines 0 comments Download
M third_party/leveldatabase/env_chromium_unittest.cc View 1 2 4 chunks +3 lines, -42 lines 0 comments Download
D third_party/leveldatabase/env_chromium_win.h View 1 chunk +0 lines, -82 lines 0 comments Download
D third_party/leveldatabase/env_chromium_win.cc View 1 chunk +0 lines, -362 lines 0 comments Download
M third_party/leveldatabase/leveldatabase.gyp View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
cmumford
big change for requesting review by both jsbell & dgrogan.
6 years, 1 month ago (2014-11-11 23:03:39 UTC) #2
jsbell
First pass comments. https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/chromium_logger.h File third_party/leveldatabase/chromium_logger.h (left): https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/chromium_logger.h#oldcode83 third_party/leveldatabase/chromium_logger.h:83: fflush(file_); Removed because base::File I/O is ...
6 years, 1 month ago (2014-11-12 01:04:05 UTC) #3
cmumford
https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/chromium_logger.h File third_party/leveldatabase/chromium_logger.h (left): https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/chromium_logger.h#oldcode83 third_party/leveldatabase/chromium_logger.h:83: fflush(file_); On 2014/11/12 01:04:04, jsbell wrote: > Removed because ...
6 years, 1 month ago (2014-11-12 20:59:33 UTC) #4
cmumford
+brettw for review of change to base/process/process_metrics.h to export base::GetMaxFds.
6 years, 1 month ago (2014-11-12 21:10:24 UTC) #6
dgrogan
https://codereview.chromium.org/710373002/diff/60001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/710373002/diff/60001/third_party/leveldatabase/env_chromium.cc#newcode618 third_party/leveldatabase/env_chromium.cc:618: base::FileEnumerator enumerator(dir_path, As Josh hinted, moving back to FileEnumerator ...
6 years, 1 month ago (2014-11-12 22:45:11 UTC) #7
dgrogan
Or, as Josh suggested a year ago[1], make FileEnumerator report errors better. [1] https://codereview.chromium.org/26513005#msg2
6 years, 1 month ago (2014-11-12 22:53:31 UTC) #8
cmumford
https://codereview.chromium.org/710373002/diff/60001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/710373002/diff/60001/third_party/leveldatabase/env_chromium.cc#newcode618 third_party/leveldatabase/env_chromium.cc:618: base::FileEnumerator enumerator(dir_path, On 2014/11/12 22:45:11, dgrogan wrote: > As ...
6 years, 1 month ago (2014-11-12 23:52:41 UTC) #9
dgrogan
> So right now LevelDB calls GetChildren in four places. It ignores the status > ...
6 years, 1 month ago (2014-11-13 00:12:46 UTC) #10
cmumford
On 2014/11/13 00:12:46, dgrogan wrote: > > So right now LevelDB calls GetChildren in four ...
6 years, 1 month ago (2014-11-13 00:42:38 UTC) #11
jsbell
lgtm modulo your feedback on the comments, but you should get dgrogan's blessing too https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/env_chromium.cc ...
6 years, 1 month ago (2014-11-14 00:12:34 UTC) #12
cmumford
https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/710373002/diff/20001/third_party/leveldatabase/env_chromium.cc#newcode99 third_party/leveldatabase/env_chromium.cc:99: } else { On 2014/11/14 00:12:33, jsbell wrote: > ...
6 years, 1 month ago (2014-11-14 22:43:57 UTC) #13
dgrogan
lgtm It would be awesome if you ran a finch experiment (with a proper control ...
6 years, 1 month ago (2014-11-15 01:10:19 UTC) #14
cmumford
On 2014/11/15 01:10:19, dgrogan wrote: > lgtm > > It would be awesome if you ...
6 years, 1 month ago (2014-11-17 18:17:47 UTC) #15
dgrogan
On Mon, Nov 17, 2014 at 10:17 AM, <cmumford@chromium.org> wrote: > On 2014/11/15 01:10:19, dgrogan ...
6 years, 1 month ago (2014-11-17 19:28:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710373002/140001
6 years, 1 month ago (2014-11-19 16:55:29 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/25211)
6 years, 1 month ago (2014-11-19 16:59:41 UTC) #20
brettw
LGTM
6 years, 1 month ago (2014-11-19 17:14:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/710373002/140001
6 years, 1 month ago (2014-11-20 16:30:29 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-11-20 16:33:09 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 16:33:50 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bf82318b8929b07d7bb0abce2729c5a83b9dbfcb
Cr-Commit-Position: refs/heads/master@{#305020}

Powered by Google App Engine
This is Rietveld 408576698