提交 e13d8dcb 编写于 作者: D Dmitry Alimov 提交者: Facebook Github Bot

Fix typos in comments (#4456)

Summary:
Fix some typos in the comments
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4456

Differential Revision: D10209214

Pulled By: miasantreble

fbshipit-source-id: dff857ba60396bc95126e635db96d7dc8330d2cb
上级 897fe6a4
...@@ -5082,8 +5082,8 @@ sub openoutputfiles { ...@@ -5082,8 +5082,8 @@ sub openoutputfiles {
# Set reading FD if using --group (--ungroup does not need) # Set reading FD if using --group (--ungroup does not need)
for my $fdno (1,2) { for my $fdno (1,2) {
# Re-open the file for reading # Re-open the file for reading
# so fdw can be closed seperately # so fdw can be closed separately
# and fdr can be seeked seperately (for --line-buffer) # and fdr can be seeked separately (for --line-buffer)
open(my $fdr,"<", $self->fh($fdno,'name')) || open(my $fdr,"<", $self->fh($fdno,'name')) ||
::die_bug("fdr: Cannot open ".$self->fh($fdno,'name')); ::die_bug("fdr: Cannot open ".$self->fh($fdno,'name'));
$self->set_fh($fdno,'r',$fdr); $self->set_fh($fdno,'r',$fdr);
......
...@@ -157,7 +157,7 @@ void ErrorHandler::CancelErrorRecovery() { ...@@ -157,7 +157,7 @@ void ErrorHandler::CancelErrorRecovery() {
// a default one is allocated during DB::Open(), so there will always be // a default one is allocated during DB::Open(), so there will always be
// one. // one.
// This can also get called as part of a recovery operation. In that case, we // This can also get called as part of a recovery operation. In that case, we
// also track the error seperately in recovery_error_ so we can tell in the // also track the error separately in recovery_error_ so we can tell in the
// end whether recovery succeeded or not // end whether recovery succeeded or not
Status ErrorHandler::SetBGError(const Status& bg_err, BackgroundErrorReason reason) { Status ErrorHandler::SetBGError(const Status& bg_err, BackgroundErrorReason reason) {
db_mutex_->AssertHeld(); db_mutex_->AssertHeld();
......
...@@ -60,7 +60,7 @@ class ErrorHandler { ...@@ -60,7 +60,7 @@ class ErrorHandler {
DBImpl* db_; DBImpl* db_;
const ImmutableDBOptions& db_options_; const ImmutableDBOptions& db_options_;
Status bg_error_; Status bg_error_;
// A seperate Status variable used to record any errors during the // A separate Status variable used to record any errors during the
// recovery process from hard errors // recovery process from hard errors
Status recovery_error_; Status recovery_error_;
InstrumentedMutex* db_mutex_; InstrumentedMutex* db_mutex_;
......
...@@ -225,7 +225,7 @@ void ExternalSstFileIngestionJob::UpdateStats() { ...@@ -225,7 +225,7 @@ void ExternalSstFileIngestionJob::UpdateStats() {
for (IngestedFileInfo& f : files_to_ingest_) { for (IngestedFileInfo& f : files_to_ingest_) {
InternalStats::CompactionStats stats(CompactionReason::kExternalSstIngestion, 1); InternalStats::CompactionStats stats(CompactionReason::kExternalSstIngestion, 1);
stats.micros = total_time; stats.micros = total_time;
// If actual copy occured for this file, then we need to count the file // If actual copy occurred for this file, then we need to count the file
// size as the actual bytes written. If the file was linked, then we ignore // size as the actual bytes written. If the file was linked, then we ignore
// the bytes written for file metadata. // the bytes written for file metadata.
// TODO (yanqin) maybe account for file metadata bytes for exact accuracy? // TODO (yanqin) maybe account for file metadata bytes for exact accuracy?
......
...@@ -58,7 +58,7 @@ class WinFileData { ...@@ -58,7 +58,7 @@ class WinFileData {
protected: protected:
const std::string filename_; const std::string filename_;
HANDLE hFile_; HANDLE hFile_;
// If ture, the I/O issued would be direct I/O which the buffer // If true, the I/O issued would be direct I/O which the buffer
// will need to be aligned (not sure there is a guarantee that the buffer // will need to be aligned (not sure there is a guarantee that the buffer
// passed in is aligned). // passed in is aligned).
const bool use_direct_io_; const bool use_direct_io_;
......
...@@ -170,7 +170,7 @@ class Block { ...@@ -170,7 +170,7 @@ class Block {
// //
// key_includes_seq, default true, means that the keys are in internal key // key_includes_seq, default true, means that the keys are in internal key
// format. // format.
// value_is_full, default ture, means that no delta encoding is // value_is_full, default true, means that no delta encoding is
// applied to values. // applied to values.
// //
// NewIterator<DataBlockIter> // NewIterator<DataBlockIter>
...@@ -449,7 +449,7 @@ class IndexBlockIter final : public BlockIter<BlockHandle> { ...@@ -449,7 +449,7 @@ class IndexBlockIter final : public BlockIter<BlockHandle> {
} }
// key_includes_seq, default true, means that the keys are in internal key // key_includes_seq, default true, means that the keys are in internal key
// format. // format.
// value_is_full, default ture, means that no delta encoding is // value_is_full, default true, means that no delta encoding is
// applied to values. // applied to values.
IndexBlockIter(const Comparator* comparator, IndexBlockIter(const Comparator* comparator,
const Comparator* user_comparator, const char* data, const Comparator* user_comparator, const char* data,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册