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

Side by Side Diff: third_party/leveldatabase/env_chromium.h

Issue 1025433003: leveldb: Reuse manifest (AKA logs) during open. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using leveldb_env::kDefaultLogReuseOptionValue for IDB Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The LevelDB Authors. All rights reserved. 1 // Copyright (c) 2013 The LevelDB Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. See the AUTHORS file for names of contributors. 3 // found in the LICENSE file. See the AUTHORS file for names of contributors.
4 4
5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 5 #ifndef THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 6 #define THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 kLockFile, 40 kLockFile,
41 kUnlockFile, 41 kUnlockFile,
42 kGetTestDirectory, 42 kGetTestDirectory,
43 kNewLogger, 43 kNewLogger,
44 kSyncParent, 44 kSyncParent,
45 kGetChildren, 45 kGetChildren,
46 kNewAppendableFile, 46 kNewAppendableFile,
47 kNumEntries 47 kNumEntries
48 }; 48 };
49 49
50 // The default value for leveldb::Options::reuse_logs. Currently log reuse is an
51 // experimental feature in leveldb. More info at:
52 // https://github.com/google/leveldb/commit/251ebf5dc70129ad3
53 const bool kDefaultLogReuseOptionValue = true;
54
50 const char* MethodIDToString(MethodID method); 55 const char* MethodIDToString(MethodID method);
51 56
52 leveldb::Status MakeIOError(leveldb::Slice filename, 57 leveldb::Status MakeIOError(leveldb::Slice filename,
53 const std::string& message, 58 const std::string& message,
54 MethodID method, 59 MethodID method,
55 base::File::Error error); 60 base::File::Error error);
56 leveldb::Status MakeIOError(leveldb::Slice filename, 61 leveldb::Status MakeIOError(leveldb::Slice filename,
57 const std::string& message, 62 const std::string& message,
58 MethodID method); 63 MethodID method);
59 64
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 void (*function)(void*); 211 void (*function)(void*);
207 }; 212 };
208 typedef std::deque<BGItem> BGQueue; 213 typedef std::deque<BGItem> BGQueue;
209 BGQueue queue_; 214 BGQueue queue_;
210 LockTable locks_; 215 LockTable locks_;
211 }; 216 };
212 217
213 } // namespace leveldb_env 218 } // namespace leveldb_env
214 219
215 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 220 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
OLDNEW
« components/leveldb_proto/DEPS ('K') | « sync/internal_api/attachments/on_disk_attachment_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698