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

Issue 146833015: drive: FileCache::Store marks the entry as dirty if empty MD5 is given (Closed)

Created:
6 years, 10 months ago by hashimoto
Modified:
6 years, 10 months ago
Reviewers:
kinaba
CC:
chromium-reviews, tim+watch_chromium.org, nkostylev+watch_chromium.org, tzik, tfarina, haitaol+watch_chromium.org, nhiroki, oshima+watch_chromium.org, kinuko+watch, rsimha+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

drive: FileCache::Store marks the entry as dirty if empty MD5 is given Store() and MarkAsDirty() should be performed together, atomically. Otherwise, it may cause troubles when something goes wrong. (e.g. sudden shutdown of the device) Provide a way to perform Store() and MarkAsDirty() at the same time by specially handling empty MD5. BUG=260539 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247559

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -62 lines) Patch
M chrome/browser/chromeos/drive/file_cache.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_cache.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_cache_unittest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/copy_operation.cc View 2 chunks +2 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation.cc View 2 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/download_operation_unittest.cc View 2 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/chromeos/drive/remove_stale_cache_files_unittest.cc View 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/drive/sync/entry_update_performer_unittest.cc View 1 chunk +1 line, -16 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
hashimoto
6 years, 10 months ago (2014-01-28 07:05:52 UTC) #1
kinaba
lgtm. great simplicity
6 years, 10 months ago (2014-01-28 08:29:37 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/146833015/20001
6 years, 10 months ago (2014-01-28 18:26:55 UTC) #3
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 01:13:19 UTC) #4
Message was sent while issue was closed.
Change committed as 247559

Powered by Google App Engine
This is Rietveld 408576698