]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
fixed typo
authorhyunwoo <music2eye.hw@gmail.com>
Mon, 5 Jun 2017 18:23:31 +0000 (11:23 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 5 Jun 2017 18:27:34 +0000 (11:27 -0700)
Summary:
fixed typo
Closes https://github.com/facebook/rocksdb/pull/2376

Differential Revision: D5183630

Pulled By: ajkr

fbshipit-source-id: 133cfd0445959e70aa2cd1a12151bf3c0c5c3ac5

16 files changed:
build_tools/run_ci_db_test.ps1
db/column_family.cc
db/compaction_picker_universal.cc
db/db_impl.cc
db/external_sst_file_ingestion_job.h
include/rocksdb/options.h
java/rocksjni/portal.h
java/rocksjni/rocksjni.cc
java/rocksjni/ttl.cc
java/src/main/java/org/rocksdb/CompactionOptionsUniversal.java
options/options_test.cc
tools/rdb/API.md
tools/rdb/README.md
util/build_version.h
util/xxhash.cc
utilities/document/document_db.cc

index 2e3c35ed0a8c23b656b93e5d16a4e77492e51287..c8167ed9571cc29e3331ed2161747b89c8d642df 100644 (file)
@@ -333,7 +333,7 @@ function RunJobs($Suites, $TestCmds, [int]$ConcurrencyVal)
             $Cases = @{}
 
             if($Suites.Count -gt 0) {
-              # Will teh first one
+              # Will the first one
               ForEach($e in $Suites.Keys) {
                 $exe_name = $e
                 $Cases = $Suites[$e]
index 8cfcdac18a8b34a3554ba0e32b2a82374a37ef6d..bf4d8a72db9dbcf9f52263829f46161728f7d21c 100644 (file)
@@ -551,7 +551,7 @@ std::unique_ptr<WriteControllerToken> SetupDelay(
     // If DB just falled into the stop condition, we need to further reduce
     // the write rate to avoid the stop condition.
     if (penalize_stop) {
-      // Penalize the near stop or stop condition by more agressive slowdown.
+      // Penalize the near stop or stop condition by more aggressive slowdown.
       // This is to provide the long term slowdown increase signal.
       // The penalty is more than the reward of recovering to the normal
       // condition.
index f34f2cdd0995d34cb9bafd78183718a1aef0be09..91ed40586def9bf551c6d95ea4687da8aaeda55b 100644 (file)
@@ -621,7 +621,7 @@ Compaction* UniversalCompactionPicker::PickCompactionToReduceSizeAmp(
     const std::string& cf_name, const MutableCFOptions& mutable_cf_options,
     VersionStorageInfo* vstorage, double score,
     const std::vector<SortedRun>& sorted_runs, LogBuffer* log_buffer) {
-  // percentage flexibilty while reducing size amplification
+  // percentage flexibility while reducing size amplification
   uint64_t ratio =
       ioptions_.compaction_options_universal.max_size_amplification_percent;
 
index e660c1c93414e2de700a2d31a600061412b89c6b..37eb0f203254f1568ea669ae8127906af84da870 100644 (file)
@@ -2448,7 +2448,7 @@ void DBImpl::EraseThreadStatusDbInfo() const {
 // A global method that can dump out the build version
 void DumpRocksDBBuildVersion(Logger * log) {
 #if !defined(IOS_CROSS_COMPILE)
-  // if we compile with Xcode, we don't run build_detect_vesion, so we don't
+  // if we compile with Xcode, we don't run build_detect_version, so we don't
   // generate util/build_version.cc
   ROCKS_LOG_HEADER(log, "RocksDB version: %d.%d.%d\n", ROCKSDB_MAJOR,
                    ROCKSDB_MINOR, ROCKSDB_PATCH);
index 10963852fa0fc4dc4123ffc91bb23474d11cedcd..0215f59107bab313ea8569757ef4dc1451d85a30 100644 (file)
@@ -97,7 +97,7 @@ class ExternalSstFileIngestionJob {
   // REQUIRES: Mutex held
   void UpdateStats();
 
-  // Cleanup after successfull/failed job
+  // Cleanup after successful/failed job
   void Cleanup(const Status& status);
 
   VersionEdit* edit() { return &edit_; }
index 28618fccd6a684c4a87d0c5e439f3ac092eac886..75f7a7a2af5496f04df642123eef3c08ef6fa992 100644 (file)
@@ -771,7 +771,7 @@ struct DBOptions {
   // If enable_pipelined_write is true, separate write thread queue is
   // maintained for WAL write and memtable write. A write thread first enter WAL
   // writer queue and then memtable writer queue. Pending thread on the WAL
-  // writer queue thus only have to wait for previous writers to finish thier
+  // writer queue thus only have to wait for previous writers to finish their
   // WAL writing but not the memtable writing. Enabling the feature may improve
   // write throughput and reduce latency of the prepare phase of two-phase
   // commit.
index c429d996db66c02771e7faeb925dc5641dfbefa3..aad26e570807194ac08597c1af97ec520974e527 100644 (file)
@@ -1635,7 +1635,7 @@ class BackupInfoListJni {
     jobject jbackup_info_handle_list =
         env->NewObject(jarray_list_clazz, cstr_mid, backup_infos.size());
     if(env->ExceptionCheck()) {
-      // exception occured constructing object
+      // exception occurred constructing object
       return nullptr;
     }
 
@@ -1650,7 +1650,7 @@ class BackupInfoListJni {
           backup_info.size,
           backup_info.number_files);
       if(env->ExceptionCheck()) {
-        // exception occured constructing object
+        // exception occurred constructing object
         if(obj != nullptr) {
           env->DeleteLocalRef(obj);
         }
@@ -1663,7 +1663,7 @@ class BackupInfoListJni {
       jboolean rs =
           env->CallBooleanMethod(jbackup_info_handle_list, add_mid, obj);
       if(env->ExceptionCheck() || rs == JNI_FALSE) {
-        // exception occured calling method, or could not add
+        // exception occurred calling method, or could not add
         if(obj != nullptr) {
           env->DeleteLocalRef(obj);
         }
@@ -1825,7 +1825,7 @@ class WriteTypeJni : public JavaClass {
         env->GetStaticFieldID(jclazz, name,
             "Lorg/rocksdb/WBWIRocksIterator$WriteType;");
     if(env->ExceptionCheck()) {
-      // exception occured while getting field
+      // exception occurred while getting field
       return nullptr;
     } else if(jfid == nullptr) {
       return nullptr;
@@ -1962,7 +1962,7 @@ class InfoLogLevelJni : public JavaClass {
     jfieldID jfid =
         env->GetStaticFieldID(jclazz, name, "Lorg/rocksdb/InfoLogLevel;");
     if(env->ExceptionCheck()) {
-      // exception occured while getting field
+      // exception occurred while getting field
       return nullptr;
     } else if(jfid == nullptr) {
       return nullptr;
index 0dfe7f0a1544378e4abf5f140f0669ac57543140..0044271470f61d18574a017472fb17b181cb163c 100644 (file)
@@ -122,7 +122,7 @@ jlongArray rocksdb_open_helper(JNIEnv* env, jlong jopt_handle,
   env->ReleaseLongArrayElements(jcolumn_options, jco, JNI_ABORT);
 
   if(has_exception == JNI_TRUE) {
-    // exception occured
+    // exception occurred
     env->ReleaseStringUTFChars(jdb_path, db_path);
     return nullptr;
   }
@@ -2180,7 +2180,7 @@ void Java_org_rocksdb_RocksDB_ingestExternalFile(
       rocksdb::JniUtil::copyStrings(env, jfile_path_list, jfile_path_list_len,
           &has_exception);
   if(has_exception == JNI_TRUE) {
-    // exception occured
+    // exception occurred
     return;
   }
 
index 84f640e9ebf59951278df639c7f7205a461d4537..31fdd74ada54adfe70f0de69e30160f637092ee8 100644 (file)
@@ -91,7 +91,7 @@ jlongArray
   env->ReleaseLongArrayElements(jcolumn_options, jco, JNI_ABORT);
 
   if(has_exception == JNI_TRUE) {
-    // exception occured
+    // exception occurred
     env->ReleaseStringUTFChars(jdb_path, db_path);
     return nullptr;
   }
index fdf3a47098a8eab0650b8a3967c8d4a8d5d67106..c6a49cf850b6442ba48955f7fcb771b651042c1a 100644 (file)
@@ -15,7 +15,7 @@ public class CompactionOptionsUniversal extends RocksObject {
   }
 
   /**
-   * Percentage flexibilty while comparing file size. If the candidate file(s)
+   * Percentage flexibility while comparing file size. If the candidate file(s)
    * size is 1% smaller than the next file's size, then include next file into
    * this candidate set.
    *
@@ -31,7 +31,7 @@ public class CompactionOptionsUniversal extends RocksObject {
   }
 
   /**
-   * Percentage flexibilty while comparing file size. If the candidate file(s)
+   * Percentage flexibility while comparing file size. If the candidate file(s)
    * size is 1% smaller than the next file's size, then include next file into
    * this candidate set.
    *
index ed001ff6c717a29a822eba669f333f7876b95018..b90c0f357aa9fcc9a116d334efe07057b8326b94 100644 (file)
@@ -336,7 +336,7 @@ TEST_F(OptionsTest, GetColumnFamilyOptionsFromStringTest) {
   ASSERT_EQ(new_cf_opt.arena_block_size, 21 * tera);
 
   // Nested block based table options
-  // Emtpy
+  // Empty
   ASSERT_OK(GetColumnFamilyOptionsFromString(base_cf_opt,
             "write_buffer_size=10;max_write_buffer_number=16;"
             "block_based_table_factory={};arena_block_size=1024",
@@ -404,7 +404,7 @@ TEST_F(OptionsTest, GetColumnFamilyOptionsFromStringTest) {
   ASSERT_OK(RocksDBOptionsParser::VerifyCFOptions(base_cf_opt, new_cf_opt));
 
   // Nested plain table options
-  // Emtpy
+  // Empty
   ASSERT_OK(GetColumnFamilyOptionsFromString(base_cf_opt,
             "write_buffer_size=10;max_write_buffer_number=16;"
             "plain_table_factory={};arena_block_size=1024",
index e651daa570f74ab1d412719d35c68ccaf3392fcb..e9c2e5925c51d6836532a101e350b7346cab308c 100644 (file)
@@ -92,7 +92,7 @@
 
 ### CreateColumnFamily
 
-    # Create a new column familiy for the database.
+    # Create a new column family for the database.
     #
     # column_family_name (string) - Name of the new column family.
     #
index 2cc9acad216ccfb4bbd343d12cb9a85b1dd144ba..f69b3f7b1b876d22b29c9821353bf7639d67e224 100644 (file)
@@ -16,7 +16,7 @@ JavaScript binding for RocksDB within a Node application.
 ### Installation
 
 NOTE: If your default `python` binary is not a version of python2, add
-the arguments `--python /path/to/python2` to the the `node-gyp` commands.
+the arguments `--python /path/to/python2` to the `node-gyp` commands.
 
 1. Make sure you have the static library (i.e. "librocksdb.a") in the root
 directory of your rocksdb installation. If not, `cd` there and run
index 223d0bae6ce28007dc509c3ed755e8780010247f..d946b017aacd1a76020aa80f98927feeae732d95 100644 (file)
@@ -7,7 +7,7 @@
 //
 #pragma once
 #if !defined(IOS_CROSS_COMPILE)
-// if we compile with Xcode, we don't run build_detect_vesion, so we don't
+// if we compile with Xcode, we don't run build_detect_version, so we don't
 // generate these variables
 // this variable tells us about the git revision
 extern const char* rocksdb_build_git_sha;
index 7bd80023c0c046cf5126b8ae12fb87b5e4bbf758..4bce61a4878673bcf3e0edef72ca9388ea1af7fc 100644 (file)
@@ -53,7 +53,7 @@ You can contact the author at :
 // By default, xxHash library provides endian-independent Hash values, based on little-endian convention.
 // Results are therefore identical for little-endian and big-endian CPU.
 // This comes at a performance cost for big-endian CPU, since some swapping is required to emulate little-endian format.
-// Should endian-independance be of no importance for your application, you may set the #define below to 1.
+// Should endian-independence be of no importance for your application, you may set the #define below to 1.
 // It will improve speed for Big-endian CPU.
 // This option has no impact on Little_Endian CPU.
 #define XXH_FORCE_NATIVE_FORMAT 0
index 010ea1a25335edb8e42c7f38ac8ddb6b67aec227..8637a2a3bddcf5a7d8c6519e6e2dae6e8a148c71 100644 (file)
@@ -25,7 +25,7 @@ namespace rocksdb {
 // IMPORTANT NOTE: Secondary index column families should be very small and
 // generally fit in memory. Assume that accessing secondary index column
 // families is much faster than accessing primary index (data heap) column
-// family. Accessing a key (i.e. checking for existance) from a column family in
+// family. Accessing a key (i.e. checking for existence) from a column family in
 // RocksDB is not much faster than accessing both key and value since they are
 // kept together and loaded from storage together.