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.
// 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.
//
// 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.
// 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);
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);
}
++it;
} else {
- assert(it->first > off) ;
+ assert(it->first > off);
if (extent_it_end > end) {
// <- data ->
// <- it ->
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;