diff --git a/db/db_impl/db_impl_write.cc b/db/db_impl/db_impl_write.cc index 9f627430d68..0d25d371e2b 100644 --- a/db/db_impl/db_impl_write.cc +++ b/db/db_impl/db_impl_write.cc @@ -455,7 +455,7 @@ Status DBImpl::WriteImpl(const WriteOptions& write_options, : WriteBatchInternal::Count(my_batch); uint64_t seq = 0; // Use a write thread to i) optimize for WAL write, ii) publish last - // sequence in in increasing order, iii) call pre_release_callback serially + // sequence in increasing order, iii) call pre_release_callback serially Status status = WriteImplWALOnly( &write_thread_, write_options, my_batch, callback, user_write_cb, log_used, log_ref, &seq, sub_batch_cnt, pre_release_callback, diff --git a/java/src/main/java/org/rocksdb/RocksDB.java b/java/src/main/java/org/rocksdb/RocksDB.java index 2467d249b05..cc421382411 100644 --- a/java/src/main/java/org/rocksdb/RocksDB.java +++ b/java/src/main/java/org/rocksdb/RocksDB.java @@ -1898,7 +1898,7 @@ public int get(final byte[] key, final byte[] value) throws RocksDBException { * @param vOffset the offset of the "value" array to be used, must be * non-negative and no longer than "value".length * @param vLen the length of the "value" array to be used, must be - * non-negative and and no larger than ("value".length - offset) + * non-negative and no larger than ("value".length - offset) * * @return The size of the actual value that matches the specified * {@code key} in byte. If the return value is greater than the @@ -2066,7 +2066,7 @@ public int get(final ColumnFamilyHandle columnFamilyHandle, * @param offset the offset of the "key" array to be used, must be * non-negative and no larger than "key".length * @param len the length of the "key" array to be used, must be - * non-negative and and no larger than ("key".length - offset) + * non-negative and no larger than ("key".length - offset) * @param value the out-value to receive the retrieved value. * @param vOffset the offset of the "value" array to be used, must be * non-negative and no longer than "key".length diff --git a/util/filelock_test.cc b/util/filelock_test.cc index f779a8b2bad..3df59d93c3f 100644 --- a/util/filelock_test.cc +++ b/util/filelock_test.cc @@ -69,7 +69,7 @@ class LockTest : public testing::Test { int fd = open(file_.c_str(), O_RDWR | O_CREAT, 0644); if (fd < 0) { // could not open file, could not check if it was locked - fprintf(stderr, "Open on on file %s failed.\n", file_.c_str()); + fprintf(stderr, "Open on file %s failed.\n", file_.c_str()); exit(exit_val); }