From cd59b139fca9ddf1d227a672f4b781be241aaab8 Mon Sep 17 00:00:00 2001 From: Chen Lixiang Date: Mon, 4 Apr 2022 09:32:57 -0700 Subject: [PATCH] Fix some typos in comments and HISTORY.md (#9798) Summary: compation --> compaction Pull Request resolved: https://github.com/facebook/rocksdb/pull/9798 Reviewed By: ajkr Differential Revision: D35341611 Pulled By: jay-zhuang fbshipit-source-id: 5ea07527c311de75cade219456b6ee52b23020f6 --- HISTORY.md | 2 +- tools/db_crashtest.py | 2 +- utilities/option_change_migration/option_change_migration.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index 20576489e..48b0c90be 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1671,7 +1671,7 @@ if set to something > 0 user will see 2 changes in iterators behavior 1) only ke * Added a new way to report QPS from db_bench (check out --report_file and --report_interval_seconds) * Added a cache for individual rows. See DBOptions::row_cache for more info. * Several new features on EventListener (see include/rocksdb/listener.h): - - OnCompationCompleted() now returns per-compaction job statistics, defined in include/rocksdb/compaction_job_stats.h. + - OnCompactionCompleted() now returns per-compaction job statistics, defined in include/rocksdb/compaction_job_stats.h. - Added OnTableFileCreated() and OnTableFileDeleted(). * Add compaction_options_universal.enable_trivial_move to true, to allow trivial move while performing universal compaction. Trivial move will happen only when all the input files are non overlapping. diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index 0252eda39..96ec137b0 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -131,7 +131,7 @@ default_params = { # Sync mode might make test runs slower so running it in a smaller chance "sync" : lambda : random.choice( [1 if t == 0 else 0 for t in range(0, 20)]), - # Disable compation_readahead_size because the test is not passing. + # Disable compaction_readahead_size because the test is not passing. #"compaction_readahead_size" : lambda : random.choice( # [0, 0, 1024 * 1024]), "db_write_buffer_size" : lambda: random.choice( diff --git a/utilities/option_change_migration/option_change_migration.cc b/utilities/option_change_migration/option_change_migration.cc index 5058c968a..8b5351624 100644 --- a/utilities/option_change_migration/option_change_migration.cc +++ b/utilities/option_change_migration/option_change_migration.cc @@ -140,7 +140,7 @@ Status MigrateToLevelBase(std::string dbname, const Options& old_opts, Status OptionChangeMigration(std::string dbname, const Options& old_opts, const Options& new_opts) { if (old_opts.compaction_style == CompactionStyle::kCompactionStyleFIFO) { - // LSM generated by FIFO compation can be opened by any compaction. + // LSM generated by FIFO compaction can be opened by any compaction. return Status::OK(); } else if (new_opts.compaction_style == CompactionStyle::kCompactionStyleUniversal) {