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

Issue 397323003: LevelDBDatabase::Compact compacts db (on disk) w/o requiring reopen. (Closed)

Created:
6 years, 5 months ago by cmumford
Modified:
6 years, 5 months ago
Reviewers:
jsbell
CC:
chromium-reviews, jam, alecflett, ericu+idb_chromium.org, darin-cc_chromium.org, cmumford, dgrogan, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

LevelDBDatabase::Compact compacts db (on disk) w/o requiring reopen. This change writes (flushes) compacted data to disk resulting in changes, which would previously only be flushed the next db close/open cycle, to be written immediately. BUG=329347 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284313

Patch Set 1 #

Total comments: 3

Patch Set 2 : Moved Write after CompactRange and added comment #

Patch Set 3 : Compacting after waiting for previous writes to finish. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M content/browser/indexed_db/indexed_db_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/indexed_db/leveldb/leveldb_database.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
cmumford
6 years, 5 months ago (2014-07-17 18:11:47 UTC) #1
jsbell
lgtm https://codereview.chromium.org/397323003/diff/1/content/browser/indexed_db/indexed_db_browsertest.cc File content/browser/indexed_db/indexed_db_browsertest.cc (right): https://codereview.chromium.org/397323003/diff/1/content/browser/indexed_db/indexed_db_browsertest.cc#newcode645 content/browser/indexed_db/indexed_db_browsertest.cc:645: const int kTestCompactBytes = 1024 * 10; // ...
6 years, 5 months ago (2014-07-17 18:33:25 UTC) #2
cmumford
I added a comment above Write. Note that I also moved it after CompactRange. It ...
6 years, 5 months ago (2014-07-17 20:51:42 UTC) #3
cmumford
The CQ bit was checked by cmumford@chromium.org
6 years, 5 months ago (2014-07-18 18:21:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmumford@chromium.org/397323003/20001
6 years, 5 months ago (2014-07-18 18:22:52 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 22:30:11 UTC) #6
cmumford
The CQ bit was checked by cmumford@chromium.org
6 years, 5 months ago (2014-07-19 01:37:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmumford@chromium.org/397323003/40001
6 years, 5 months ago (2014-07-19 01:38:36 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 04:59:17 UTC) #9
Message was sent while issue was closed.
Change committed as 284313

Powered by Google App Engine
This is Rietveld 408576698