diff --git a/db/db_impl.h b/db/db_impl.h index 415344e4e..b736b2c2b 100644 --- a/db/db_impl.h +++ b/db/db_impl.h @@ -358,7 +358,7 @@ class DBImpl : public DB { #endif // NDEBUG - // Return maximum background compaction alowed to be scheduled based on + // Return maximum background compaction allowed to be scheduled based on // compaction status. int BGCompactionsAllowed() const; diff --git a/db/db_wal_test.cc b/db/db_wal_test.cc index 3852eb334..4c0ab4efa 100644 --- a/db/db_wal_test.cc +++ b/db/db_wal_test.cc @@ -953,7 +953,7 @@ TEST_F(DBWALTest, RecoverFromCorruptedWALWithoutFlush) { std::string value = DummyString(RecoveryTestHelper::kValueSize); ASSERT_OK(Put(key, value)); } - // Save data for comparision. + // Save data for comparison. auto data = getAll(); // Reopen. Verify data. ASSERT_OK(TryReopen(options)); diff --git a/db/write_batch.cc b/db/write_batch.cc index 8492e5537..e42abc9a4 100644 --- a/db/write_batch.cc +++ b/db/write_batch.cc @@ -1012,7 +1012,7 @@ class MemTableInserter : public WriteBatch::Handler { // at this point individual CF lognumbers will prevent // duplicate re-insertion of values. assert(log_number_ref_ == 0); - // all insertes must refernce this trx log number + // all insertes must reference this trx log number log_number_ref_ = trx->log_number_; s = trx->batch_->Iterate(this); log_number_ref_ = 0; diff --git a/db/write_thread.h b/db/write_thread.h index 3e3a2f337..87ffff6f9 100644 --- a/db/write_thread.h +++ b/db/write_thread.h @@ -193,7 +193,7 @@ class WriteThread { // writer. If w has become the leader of a write batch group, returns // STATE_GROUP_LEADER. If w has been made part of a sequential batch // group and the leader has performed the write, returns STATE_DONE. - // If w has been made part of a parallel batch group and is reponsible + // If w has been made part of a parallel batch group and is responsible // for updating the memtable, returns STATE_PARALLEL_FOLLOWER. // // The db mutex SHOULD NOT be held when calling this function, because diff --git a/include/rocksdb/statistics.h b/include/rocksdb/statistics.h index 05688f5cb..80a61fee3 100644 --- a/include/rocksdb/statistics.h +++ b/include/rocksdb/statistics.h @@ -359,7 +359,7 @@ enum StatsLevel { kExceptTimeForMutex, // Collect all stats, including measuring duration of mutex operations. // If getting time is expensive on the platform to run, it can - // reduce scalability to more threads, especialy for writes. + // reduce scalability to more threads, especially for writes. kAll, }; diff --git a/third-party/fbson/FbsonJsonParser.h b/third-party/fbson/FbsonJsonParser.h index 73c1febfa..678d970fb 100644 --- a/third-party/fbson/FbsonJsonParser.h +++ b/third-party/fbson/FbsonJsonParser.h @@ -40,7 +40,7 @@ * string to an id, and store the dictionary id in FBSON to save space. The * purpose of using an external dictionary is more towards a collection of * documents (which has common keys) rather than a single document, so that - * space saving will be siginificant. + * space saving will be significant. * * ** Endianness ** * Note: FBSON serialization doesn't assume endianness of the server. However diff --git a/utilities/persistent_cache/hash_table.h b/utilities/persistent_cache/hash_table.h index c68263d34..1a67234a9 100644 --- a/utilities/persistent_cache/hash_table.h +++ b/utilities/persistent_cache/hash_table.h @@ -22,7 +22,7 @@ namespace rocksdb { // HashTable // -// Traditional implementation of hash table with syncronization built on top +// Traditional implementation of hash table with synchronization built on top // don't perform very well in multi-core scenarios. This is an implementation // designed for multi-core scenarios with high lock contention. // diff --git a/utilities/persistent_cache/lrulist.h b/utilities/persistent_cache/lrulist.h index 6aae1dd36..2cad9a5b7 100644 --- a/utilities/persistent_cache/lrulist.h +++ b/utilities/persistent_cache/lrulist.h @@ -164,7 +164,7 @@ class LRUList { } } - mutable port::Mutex lock_; // syncronization primitive + mutable port::Mutex lock_; // synchronization primitive T* head_ = nullptr; // front (cold) T* tail_ = nullptr; // back (hot) };