Ankit Gupta 11 years ago
commit 0e4e4dbd3c
  1. 2
      db/version_set.h
  2. 2
      table/block_based_table_reader.h
  3. 8
      utilities/backupable/backupable_db.cc

@ -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…
Cancel
Save