]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/os/bluestore: fix typo in: 8956/head
authorShinobu Kinjo <shinobu@linux.com>
Sun, 8 May 2016 06:02:48 +0000 (15:02 +0900)
committerShinobu Kinjo <shinobu@linux.com>
Sun, 8 May 2016 09:16:24 +0000 (18:16 +0900)
                    BlueRocksEnv.h
                    NVMEDevice.h

Signed-off-by: Shinobu Kinjo <shinobu@linux.com>
src/os/bluestore/BlueRocksEnv.h
src/os/bluestore/NVMEDevice.h

index a44aa9c1c04689c83d71ac7537694c611a4aacee..463cbf460dcb4675413b7bbcde0abe20efbe4b02 100644 (file)
@@ -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);
index 70c63655835faeaa198c20a07c1b6d70cd0980f0..7d654e52eee3f71891198bfbd86fef5b0393e3a4 100644 (file)
@@ -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;