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

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: Deleted redundant DEPS path Created 5 years, 8 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
« no previous file with comments | « sync/internal_api/attachments/on_disk_attachment_store.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void (*function)(void*); 197 void (*function)(void*);
193 }; 198 };
194 typedef std::deque<BGItem> BGQueue; 199 typedef std::deque<BGItem> BGQueue;
195 BGQueue queue_; 200 BGQueue queue_;
196 LockTable locks_; 201 LockTable locks_;
197 }; 202 };
198 203
199 } // namespace leveldb_env 204 } // namespace leveldb_env
200 205
201 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_ 206 #endif // THIRD_PARTY_LEVELDATABASE_ENV_CHROMIUM_H_
OLDNEW
« no previous file with comments | « 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