fixed typo

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

Differential Revision: D5079631

Pulled By: sagar0

fbshipit-source-id: e4c8d1d89b244ee69e9dea1dd013227cc5241026
This commit is contained in:
hyunwoo 2017-05-17 16:38:05 -07:00 committed by Facebook Github Bot
parent 8032f4cb31
commit 0ebdd70579
4 changed files with 5 additions and 5 deletions

View file

@ -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);

View file

@ -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

View file

@ -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;
}
}

View file

@ -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());