Summary:
fixed typo
Closes https://github.com/facebook/rocksdb/pull/2312

Differential Revision: D5079631

Pulled By: sagar0

fbshipit-source-id: e4c8d1d89b244ee69e9dea1dd013227cc5241026
main
hyunwoo 7 years ago committed by Facebook Github Bot
parent 8032f4cb31
commit 0ebdd70579
  1. 2
      db/db_impl.h
  2. 2
      include/rocksdb/utilities/checkpoint.h
  3. 2
      table/block_based_table_reader.cc
  4. 4
      utilities/checkpoint/checkpoint_test.cc

@ -389,7 +389,7 @@ class DBImpl : public DB {
Status TEST_GetAllImmutableCFOptions(
std::unordered_map<std::string, const ImmutableCFOptions*>* iopts_map);
// Return the lastest MutableCFOptions of of a column family
// Return the lastest MutableCFOptions of a column family
Status TEST_GetLatestMutableCFOptions(ColumnFamilyHandle* column_family,
MutableCFOptions* mutable_cf_opitons);

@ -17,7 +17,7 @@ class DB;
class Checkpoint {
public:
// Creates a Checkpoint object to be used for creating openable sbapshots
// Creates a Checkpoint object to be used for creating openable snapshots
static Status Create(DB* db, Checkpoint** checkpoint_ptr);
// Builds an openable snapshot of RocksDB on the same disk, which

@ -1414,7 +1414,7 @@ BlockBasedTable::BlockEntryIteratorState::NewSecondaryIterator(
{
ReadLock rl(&cleaner_mu);
if (cleaner_set.find(offset) != cleaner_set.end()) {
// already have a refernce to the block cache objects
// already have a reference to the block cache objects
return iter;
}
}

@ -219,7 +219,7 @@ class CheckpointTest : public testing::Test {
};
TEST_F(CheckpointTest, GetSnapshotLink) {
for (uint64_t log_size_for_fush : {0, 1000000}) {
for (uint64_t log_size_for_flush : {0, 1000000}) {
Options options;
const std::string snapshot_name = test::TmpDir(env_) + "/snapshot";
DB* snapshotDB;
@ -242,7 +242,7 @@ TEST_F(CheckpointTest, GetSnapshotLink) {
ASSERT_OK(Put(key, "v1"));
// Take a snapshot
ASSERT_OK(Checkpoint::Create(db_, &checkpoint));
ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name, log_size_for_fush));
ASSERT_OK(checkpoint->CreateCheckpoint(snapshot_name, log_size_for_flush));
ASSERT_OK(Put(key, "v2"));
ASSERT_EQ("v2", Get(key));
ASSERT_OK(Flush());

Loading…
Cancel
Save