Skip to content

Commit 443e04e

Browse files
committed
Fixed typos
1 parent 55baa3d commit 443e04e

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

db/db_impl.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2423,7 +2423,7 @@ Status DBImpl::DoCompactionWork(CompactionState* compact,
24232423

24242424
int num_output_files = compact->outputs.size();
24252425
if (compact->builder != nullptr) {
2426-
// An error occured so ignore the last output.
2426+
// An error occurred so ignore the last output.
24272427
assert(num_output_files > 0);
24282428
--num_output_files;
24292429
}

doc/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ <h2>Write buffer</h2>
407407
to the other write buffer.
408408
<code>Options::min_write_buffer_number_to_merge</code> is the minimum number
409409
of write buffers that will be merged together before writing to storage.
410-
If set to 1, then all write buffers are fushed to L0 as individual files and
410+
If set to 1, then all write buffers are flushed to L0 as individual files and
411411
this increases read amplification because a get request has to check in all
412412
of these files. Also, an in-memory merge may result in writing lesser
413413
data to storage if there are duplicate records in each of these
@@ -661,7 +661,7 @@ <h2> Universal style compaction specific settings</h2>
661661
Here we give short overview of options in <code>CompactionOptionsUniversal</code>:
662662
<ul>
663663
<p>
664-
<li> <code>CompactionOptionsUniversal::size_ratio</code> - Percentage flexibilty while comparing file size. If the candidate file(s)
664+
<li> <code>CompactionOptionsUniversal::size_ratio</code> - Percentage flexibility while comparing file size. If the candidate file(s)
665665
size is 1% smaller than the next file's size, then include next file into
666666
this candidate set. Default: 1
667667
<p>

tools/db_crashtest2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def main(argv):
146146
stdoutdata = stdoutdata.lower()
147147
errorcount = (stdoutdata.count('error') -
148148
stdoutdata.count('got errors 0 times'))
149-
print "#times error occured in output is " + str(errorcount) + "\n"
149+
print "#times error occurred in output is " + str(errorcount) + "\n"
150150

151151
if (errorcount > 0):
152152
print "TEST FAILED. Output has 'error'!!!\n"

tools/ldb_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def testDumpLoad(self):
314314
# Dump command fails because of typo in params
315315
dumpFilePath = os.path.join(self.TMP_DIR, "dump8")
316316
self.assertFalse(self.dumpDb(
317-
"--db=%s --create_if_missin" % origDbPath, dumpFilePath))
317+
"--db=%s --create_if_missing" % origDbPath, dumpFilePath))
318318

319319
def testMiscAdminTask(self):
320320
print "Running testMiscAdminTask..."

tools/shell/ShellState.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ class ShellContext;
77
/*
88
* Currently, there are four types of state in total
99
* 1. start state: the first state the program enters
10-
* 2. connecting state: the program try to connnect to a rocksdb server, whose
10+
* 2. connecting state: the program try to connect to a rocksdb server, whose
1111
* previous states could be "start" or "connected" states
1212
* 3. connected states: the program has already connected to a server, and is
1313
* processing user commands
14-
* 4. stop state: the last state the program enters, do some cleanning up things
14+
* 4. stop state: the last state the program enters, do some cleaning up things
1515
*/
1616

1717
class ShellState {

util/build_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// these variables tell us about the git config and time
88
extern const char* rocksdb_build_git_sha;
99

10-
// these variables tell us when the compilation occured
10+
// these variables tell us when the compilation occurred
1111
extern const char* rocksdb_build_compile_time;
1212
extern const char* rocksdb_build_compile_date;
1313

utilities/merge_operators/string_append/stringappend_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class StringLists {
8383
}
8484

8585
// Either key does not exist, or there is some error.
86-
*result = ""; // Always return empty string (just for convenvtion)
86+
*result = ""; // Always return empty string (just for convention)
8787

8888
//NotFound is okay; just return empty (similar to std::map)
8989
//But network or db errors, etc, should fail the test (or at least yell)

utilities/merge_operators/uint64add.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using namespace rocksdb;
1010
namespace { // anonymous namespace
1111

1212
// A 'model' merge operator with uint64 addition semantics
13-
// Implemented as an AssociativeMergeOperator for simplicty and example.
13+
// Implemented as an AssociativeMergeOperator for simplicity and example.
1414
class UInt64AddOperator : public AssociativeMergeOperator {
1515
public:
1616
virtual bool Merge(const Slice& key,

utilities/redis/redis_lists_test.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ TEST(RedisListsTest, InsertPushSetTest) {
485485
// redis.Print("k1"); // manually check
486486

487487
// Test Inserting before/after non-existent values
488-
lengthCheck = redis.Length("k1"); // Ensure that the length doesnt change
488+
lengthCheck = redis.Length("k1"); // Ensure that the length doesn't change
489489
ASSERT_EQ(lengthCheck, 10);
490490
ASSERT_EQ(redis.InsertBefore("k1", "non-exist", "randval"), lengthCheck);
491491
ASSERT_EQ(redis.InsertAfter("k1", "nothing", "a"), lengthCheck);
@@ -723,7 +723,7 @@ TEST(RedisListsTest, PersistenceMultiKeyTest) {
723723

724724
// Block three: Verify the changes from block 2
725725
{
726-
RedisLists redis(kDefaultDbName, options, false); // Presistent, non-destructive
726+
RedisLists redis(kDefaultDbName, options, false); // Persistent, non-destructive
727727

728728
// Check
729729
ASSERT_EQ(redis.Length("k1"), 7);

utilities/ttl/ttl_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class TtlTest {
315315

316316
// If TTL is non positive or not provided, the behaviour is TTL = infinity
317317
// This test opens the db 3 times with such default behavior and inserts a
318-
// bunch of kvs each time. All kvs should accummulate in the db till the end
318+
// bunch of kvs each time. All kvs should accumulate in the db till the end
319319
// Partitions the sample-size provided into 3 sets over boundary1 and boundary2
320320
TEST(TtlTest, NoEffect) {
321321
MakeKVMap(kSampleSize_);

0 commit comments

Comments
 (0)