Merge branch 'master' of https://github.com/facebook/rocksdb
This commit is contained in:
commit
0e4e4dbd3c
@ -219,7 +219,7 @@ class Version {
|
||||
friend class UniversalCompactionPicker;
|
||||
|
||||
class LevelFileNumIterator;
|
||||
struct LevelFileIteratorState;
|
||||
class LevelFileIteratorState;
|
||||
|
||||
bool PrefixMayMatch(const ReadOptions& options, Iterator* level_iter,
|
||||
const Slice& internal_prefix) const;
|
||||
|
@ -111,7 +111,7 @@ class BlockBasedTable : public TableReader {
|
||||
Rep* rep_;
|
||||
bool compaction_optimized_;
|
||||
|
||||
struct BlockEntryIteratorState;
|
||||
class BlockEntryIteratorState;
|
||||
static Iterator* NewDataBlockIterator(Rep* rep, const ReadOptions& ro,
|
||||
bool* didIO, const Slice& index_value);
|
||||
|
||||
|
@ -1134,9 +1134,9 @@ Status BackupEngineImpl::BackupMeta::StoreToFile(bool sync) {
|
||||
// -------- BackupEngineReadOnlyImpl ---------
|
||||
class BackupEngineReadOnlyImpl : public BackupEngineReadOnly {
|
||||
public:
|
||||
BackupEngineReadOnlyImpl(Env* db_env, const BackupableDBOptions& options) {
|
||||
backup_engine_ = new BackupEngineImpl(db_env, options, true);
|
||||
}
|
||||
BackupEngineReadOnlyImpl(Env* db_env, const BackupableDBOptions& options)
|
||||
: backup_engine_(new BackupEngineImpl(db_env, options, true)) {}
|
||||
|
||||
virtual ~BackupEngineReadOnlyImpl() {}
|
||||
|
||||
virtual void GetBackupInfo(std::vector<BackupInfo>* backup_info) {
|
||||
@ -1158,7 +1158,7 @@ class BackupEngineReadOnlyImpl : public BackupEngineReadOnly {
|
||||
}
|
||||
|
||||
private:
|
||||
BackupEngineImpl* backup_engine_;
|
||||
std::unique_ptr<BackupEngineImpl> backup_engine_;
|
||||
};
|
||||
|
||||
BackupEngineReadOnly* BackupEngineReadOnly::NewReadOnlyBackupEngine(
|
||||
|
Loading…
Reference in New Issue
Block a user