Josh, could you review this? You reviewed the blink version ~month ago.
7 years, 6 months ago
(2013-06-07 17:09:01 UTC)
#1
Josh, could you review this? You reviewed the blink version ~month ago.
jsbell
Is the patch missing something, or am I? https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode502 content/browser/indexed_db/indexed_db_backing_store.cc:502: bool ...
7 years, 6 months ago
(2013-06-07 17:48:41 UTC)
#2
7 years, 6 months ago
(2013-06-07 18:23:58 UTC)
#3
https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_d...
File content/browser/indexed_db/indexed_db_backing_store.cc (right):
https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_d...
content/browser/indexed_db/indexed_db_backing_store.cc:502: bool is_disk_full =
false;
On 2013/06/07 17:48:41, jsbell wrote:
> This isn't used. In the Blink patch we assert, log, histogram and fail the
open
> so that we don't fall into the failure code.
Thanks for catching this. I decided the blink behavior isn't exactly right. In
blink, even if the database was successfully opened we'd throw an error if the
disk was full. I'd rather it be such that if the database is successfully opened
and read we return success even if the disk is full. Who knows, some space may
have been freed between checking and opening.
The important part is not deleting data when the disk is full.
https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_d...
File content/browser/indexed_db/indexed_db_backing_store.h (right):
https://codereview.chromium.org/16409006/diff/18001/content/browser/indexed_d...
content/browser/indexed_db/indexed_db_backing_store.h:35: bool* is_disk_full =
0) = 0;
On 2013/06/07 17:48:41, jsbell wrote:
> NULL is preferred over 0.
Done.
jsbell
lgtm with one nit https://codereview.chromium.org/16409006/diff/24001/content/browser/indexed_db/indexed_db_backing_store.cc File content/browser/indexed_db/indexed_db_backing_store.cc (right): https://codereview.chromium.org/16409006/diff/24001/content/browser/indexed_db/indexed_db_backing_store.cc#newcode541 content/browser/indexed_db/indexed_db_backing_store.cc:541: if (is_disk_full) { This can ...
7 years, 6 months ago
(2013-06-07 18:32:19 UTC)
#4
Issue 16409006: Don't delete leveldb directory if disk was full.
(Closed)
Created 7 years, 6 months ago by dgrogan
Modified 7 years, 6 months ago
Reviewers: jsbell, alecflett
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 6