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

Issue 11445030: Add sync of parent directory when creating or renaming a file. (Closed)

Created:
8 years ago by ericu
Modified:
7 years, 6 months ago
Reviewers:
dgrogan
CC:
chromium-reviews, dgrogan, alecflett, jsbell
Visibility:
Public.

Description

Add sync of parent directory when creating or renaming a file. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172237

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixed windows build, rebased. #

Patch Set 3 : Correct flag to open() for directory. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -16 lines) Patch
M third_party/leveldatabase/env_chromium.cc View 1 2 6 chunks +44 lines, -16 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
ericu
I'm not sure who wants to review this. This should handle syncing of the parent ...
8 years ago (2012-12-05 23:26:48 UTC) #1
dgrogan
lgtm but questions below https://codereview.chromium.org/11445030/diff/1/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/11445030/diff/1/third_party/leveldatabase/env_chromium.cc#newcode73 third_party/leveldatabase/env_chromium.cc:73: } This won't compile on ...
8 years ago (2012-12-06 23:15:41 UTC) #2
dgrogan
https://codereview.chromium.org/11445030/diff/1/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/11445030/diff/1/third_party/leveldatabase/env_chromium.cc#newcode34 third_party/leveldatabase/env_chromium.cc:34: #include <fcntl.h> Oh yeah, what's this for?
8 years ago (2012-12-06 23:17:38 UTC) #3
ericu
https://codereview.chromium.org/11445030/diff/1/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/11445030/diff/1/third_party/leveldatabase/env_chromium.cc#newcode34 third_party/leveldatabase/env_chromium.cc:34: #include <fcntl.h> On 2012/12/06 23:17:38, dgrogan wrote: > Oh ...
8 years ago (2012-12-10 18:31:12 UTC) #4
dgrogan
lgtm I'd say keep messing around with uploading the patch to (and committing from) this ...
8 years ago (2012-12-10 21:53:46 UTC) #5
ericu
On 2012/12/10 21:53:46, dgrogan wrote: > I'd say keep messing around with uploading the patch ...
8 years ago (2012-12-10 23:20:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/11445030/7001
8 years ago (2012-12-10 23:20:21 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) content_unittests
8 years ago (2012-12-11 00:04:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ericu@chromium.org/11445030/12003
8 years ago (2012-12-11 00:15:59 UTC) #9
commit-bot: I haz the power
Change committed as 172237
8 years ago (2012-12-11 02:20:50 UTC) #10
dgrogan
https://chromiumcodereview.appspot.com/11445030/diff/12003/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://chromiumcodereview.appspot.com/11445030/diff/12003/third_party/leveldatabase/env_chromium.cc#newcode94 third_party/leveldatabase/env_chromium.cc:94: #if !defined(OS_WIN) What was the impetus for skipping this ...
7 years, 6 months ago (2013-05-28 22:02:19 UTC) #11
ericu
7 years, 6 months ago (2013-05-28 22:05:25 UTC) #12
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11445030/diff/12003/third_party/leveld...
File third_party/leveldatabase/env_chromium.cc (right):

https://chromiumcodereview.appspot.com/11445030/diff/12003/third_party/leveld...
third_party/leveldatabase/env_chromium.cc:94: #if !defined(OS_WIN)
On 2013/05/28 22:02:19, dgrogan wrote:
> What was the impetus for skipping this on windows? I'm interested in turning
it
> on for windows too to see what happens.

I asked Siggi, and he said that on Windows there was no need to sync the parent
directory--that its metadata would be updated via the creation of the new file,
without an explicit sync.  So it's as if this is already done on Windows.

Powered by Google App Engine
This is Rietveld 408576698