From: Shinobu Kinjo Date: Sun, 8 May 2016 06:02:48 +0000 (+0900) Subject: src/os/bluestore: fix typo in: X-Git-Tag: v11.0.0~567^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=852dc3fa666bf630f7aebdce466c429f28e1cadd;p=ceph.git src/os/bluestore: fix typo in: BlueRocksEnv.h NVMEDevice.h Signed-off-by: Shinobu Kinjo --- diff --git a/src/os/bluestore/BlueRocksEnv.h b/src/os/bluestore/BlueRocksEnv.h index a44aa9c1c046..463cbf460dcb 100644 --- a/src/os/bluestore/BlueRocksEnv.h +++ b/src/os/bluestore/BlueRocksEnv.h @@ -25,7 +25,7 @@ class BlueRocksEnv : public rocksdb::EnvWrapper { public: // Create a brand new sequentially-readable file with the specified name. // On success, stores a pointer to the new file in *result and returns OK. - // On failure stores nullptr in *result and returns non-OK. If the file does + // On failure, stores nullptr in *result and returns non-OK. If the file does // not exist, returns a non-OK status. // // The returned file will only be accessed by one thread at a time. @@ -36,7 +36,7 @@ public: // Create a brand new random access read-only file with the // specified name. On success, stores a pointer to the new file in - // *result and returns OK. On failure stores nullptr in *result and + // *result and returns OK. On failure, stores nullptr in *result and // returns non-OK. If the file does not exist, returns a non-OK // status. // @@ -49,7 +49,7 @@ public: // Create an object that writes to a new file with the specified // name. Deletes any existing file with the same name and creates a // new file. On success, stores a pointer to the new file in - // *result and returns OK. On failure stores nullptr in *result and + // *result and returns OK. On failure, stores nullptr in *result and // returns non-OK. // // The returned file will only be accessed by one thread at a time. @@ -95,7 +95,7 @@ public: // Create the specified directory. Returns error if directory exists. rocksdb::Status CreateDir(const std::string& dirname); - // Creates directory if missing. Return Ok if it exists, or successful in + // Create directory if missing. Return Ok if it exists, or successful in // Creating. rocksdb::Status CreateDirIfMissing(const std::string& dirname); @@ -136,7 +136,7 @@ public: rocksdb::Status UnlockFile(rocksdb::FileLock* lock); // *path is set to a temporary directory that can be used for testing. It may - // or many not have just been created. The directory may or may not differ + // or may not have just been created. The directory may or may not differ // between runs of the same process, but subsequent calls will return the // same directory. rocksdb::Status GetTestDirectory(std::string* path); diff --git a/src/os/bluestore/NVMEDevice.h b/src/os/bluestore/NVMEDevice.h index 70c63655835f..7d654e52eee3 100644 --- a/src/os/bluestore/NVMEDevice.h +++ b/src/os/bluestore/NVMEDevice.h @@ -110,7 +110,7 @@ class NVMEDevice : public BlockDevice { } ++it; } else { - assert(it->first > off) ; + assert(it->first > off); if (extent_it_end > end) { // <- data -> // <- it -> @@ -227,7 +227,7 @@ class NVMEDevice : public BlockDevice { int aio_write(uint64_t off, bufferlist& bl, IOContext *ioc, - bool buffered) override ; + bool buffered) override; int aio_zero(uint64_t off, uint64_t len, IOContext *ioc) override; int flush() override;