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

Issue 23549017: Do fcntl(...F_FULLFSYNC...) on mac instead of fsync (Closed)

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

Description

Do fcntl(...F_FULLFSYNC...) on mac instead of fsync From mac's fsync man page: For applications that require tighter guarantees about the integrity of their data, Mac OS X provides the F_FULLFSYNC fcntl. The F_FULLFSYNC fcntl asks the drive to flush all buffered data to permanent storage. Applications, such as databases, that require a strict ordering of writes should use F_FULLFSYNC to ensure that their data is written in the order they expect. Also, specifically check for a return value of -1 from fdatasync. mac's fcntl only guarantees to return -1 on error and something other than -1 on success. All other platforms agree to return -1 on error for fsync/fdatasync/_commit. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=221413

Patch Set 1 #

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

Messages

Total messages: 7 (0 generated)
dgrogan
Josh, could you review this? It can only hurt performance but looks like we are ...
7 years, 3 months ago (2013-09-04 23:25:51 UTC) #1
jsbell
lgtm https://codereview.chromium.org/23549017/diff/1/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/23549017/diff/1/third_party/leveldatabase/env_chromium.cc#newcode72 third_party/leveldatabase/env_chromium.cc:72: return HANDLE_EINTR(fcntl(fildes, F_FULLFSYNC, 0)); Can fcntl() produce an ...
7 years, 3 months ago (2013-09-04 23:59:34 UTC) #2
dgrogan
https://codereview.chromium.org/23549017/diff/1/third_party/leveldatabase/env_chromium.cc File third_party/leveldatabase/env_chromium.cc (right): https://codereview.chromium.org/23549017/diff/1/third_party/leveldatabase/env_chromium.cc#newcode72 third_party/leveldatabase/env_chromium.cc:72: return HANDLE_EINTR(fcntl(fildes, F_FULLFSYNC, 0)); On 2013/09/04 23:59:34, jsbell wrote: ...
7 years, 3 months ago (2013-09-05 00:01:32 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/23549017/1
7 years, 3 months ago (2013-09-05 00:11:03 UTC) #4
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) ui_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_dbg_simulator&number=82868
7 years, 3 months ago (2013-09-05 01:21:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgrogan@chromium.org/23549017/1
7 years, 3 months ago (2013-09-05 14:13:54 UTC) #6
commit-bot: I haz the power
7 years, 3 months ago (2013-09-05 14:18:04 UTC) #7
Message was sent while issue was closed.
Change committed as 221413

Powered by Google App Engine
This is Rietveld 408576698