Skip to content

Commit

Permalink
fix simple typos (facebook#1183)
Browse files Browse the repository at this point in the history
  • Loading branch information
charsyam authored and dhruba committed Jun 25, 2016
1 parent 3b7ed67 commit 4f2b094
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion db/db_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion db/db_wal_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion db/write_batch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion db/write_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/rocksdb/statistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion third-party/fbson/FbsonJsonParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion utilities/persistent_cache/hash_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace rocksdb {

// HashTable<T, Hash, Equal>
//
// 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.
//
Expand Down
2 changes: 1 addition & 1 deletion utilities/persistent_cache/lrulist.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand Down

0 comments on commit 4f2b094

Please sign in to comment.