Fix tabs and lint-ignores (#6734)

Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/6734

Reviewed By: cheng-chang

Differential Revision: D21134556

Pulled By: pdillinger

fbshipit-source-id: 3636cc1d1333137b70031f8277458781c21631fb
main
Peter Dillinger 5 years ago committed by Facebook GitHub Bot
parent 243852ec15
commit 45d2b4efca
  1. 2
      db/log_reader.h
  2. 1
      java/rocksjni/jnicallback.cc
  3. 1
      java/rocksjni/jnicallback.h
  4. 1
      java/rocksjni/rocks_callback_object.cc
  5. 3
      java/rocksjni/statisticsjni.cc
  6. 1
      java/rocksjni/statisticsjni.h
  7. 1
      table/cuckoo/cuckoo_table_builder_test.cc
  8. 1
      utilities/simulator_cache/sim_cache.cc
  9. 1
      utilities/simulator_cache/sim_cache_test.cc
  10. 1
      utilities/ttl/ttl_test.cc

@ -49,7 +49,6 @@ class Reader {
// //
// If "checksum" is true, verify checksums if available. // If "checksum" is true, verify checksums if available.
Reader(std::shared_ptr<Logger> info_log, Reader(std::shared_ptr<Logger> info_log,
// @lint-ignore TXT2 T25377293 Grandfathered in
std::unique_ptr<SequentialFileReader>&& file, Reporter* reporter, std::unique_ptr<SequentialFileReader>&& file, Reporter* reporter,
bool checksum, uint64_t log_num); bool checksum, uint64_t log_num);
// No copying allowed // No copying allowed
@ -159,7 +158,6 @@ class Reader {
class FragmentBufferedReader : public Reader { class FragmentBufferedReader : public Reader {
public: public:
FragmentBufferedReader(std::shared_ptr<Logger> info_log, FragmentBufferedReader(std::shared_ptr<Logger> info_log,
// @lint-ignore TXT2 T25377293 Grandfathered in
std::unique_ptr<SequentialFileReader>&& _file, std::unique_ptr<SequentialFileReader>&& _file,
Reporter* reporter, bool checksum, uint64_t log_num) Reporter* reporter, bool checksum, uint64_t log_num)
: Reader(info_log, std::move(_file), reporter, checksum, log_num), : Reader(info_log, std::move(_file), reporter, checksum, log_num),

@ -49,5 +49,4 @@ JniCallback::~JniCallback() {
releaseJniEnv(attached_thread); releaseJniEnv(attached_thread);
} }
// @lint-ignore TXT4 T25377293 Grandfathered in
} // namespace ROCKSDB_NAMESPACE } // namespace ROCKSDB_NAMESPACE

@ -27,5 +27,4 @@ class JniCallback {
}; };
} // namespace ROCKSDB_NAMESPACE } // namespace ROCKSDB_NAMESPACE
// @lint-ignore TXT4 T25377293 Grandfathered in
#endif // JAVA_ROCKSJNI_JNICALLBACK_H_ #endif // JAVA_ROCKSJNI_JNICALLBACK_H_

@ -27,5 +27,4 @@ void Java_org_rocksdb_RocksCallbackObject_disposeInternal(JNIEnv* /*env*/,
// I think this is okay, as Comparator and JniCallback both have virtual // I think this is okay, as Comparator and JniCallback both have virtual
// destructors... // destructors...
delete reinterpret_cast<ROCKSDB_NAMESPACE::JniCallback*>(handle); delete reinterpret_cast<ROCKSDB_NAMESPACE::JniCallback*>(handle);
// @lint-ignore TXT4 T25377293 Grandfathered in
} }

@ -28,5 +28,4 @@ bool StatisticsJni::HistEnabledForType(uint32_t type) const {
return true; return true;
} }
// @lint-ignore TXT4 T25377293 Grandfathered in } // namespace ROCKSDB_NAMESPACE
}; // namespace ROCKSDB_NAMESPACE

@ -30,5 +30,4 @@ class StatisticsJni : public StatisticsImpl {
} // namespace ROCKSDB_NAMESPACE } // namespace ROCKSDB_NAMESPACE
// @lint-ignore TXT4 T25377293 Grandfathered in
#endif // JAVA_ROCKSJNI_STATISTICSJNI_H_ #endif // JAVA_ROCKSJNI_STATISTICSJNI_H_

@ -57,7 +57,6 @@ class CuckooBuilderTest : public testing::Test {
uint64_t read_file_size; uint64_t read_file_size;
ASSERT_OK(env_->GetFileSize(fname, &read_file_size)); ASSERT_OK(env_->GetFileSize(fname, &read_file_size));
// @lint-ignore TXT2 T25377293 Grandfathered in
Options options; Options options;
options.allow_mmap_reads = true; options.allow_mmap_reads = true;
ImmutableCFOptions ioptions(options); ImmutableCFOptions ioptions(options);

@ -92,7 +92,6 @@ class CacheActivityLogger {
log_line += key.ToString(true); log_line += key.ToString(true);
log_line += " - "; log_line += " - ";
AppendNumberTo(&log_line, size); AppendNumberTo(&log_line, size);
// @lint-ignore TXT2 T25377293 Grandfathered in
log_line += "\n"; log_line += "\n";
// line format: "ADD - <KEY> - <KEY-SIZE>" // line format: "ADD - <KEY> - <KEY-SIZE>"

@ -199,7 +199,6 @@ TEST_F(SimCacheTest, SimCacheLogging) {
ASSERT_EQ(add_num, num_block_entries); ASSERT_EQ(add_num, num_block_entries);
// Log things again but stop logging automatically after reaching 512 bytes // Log things again but stop logging automatically after reaching 512 bytes
// @lint-ignore TXT2 T25377293 Grandfathered in
int max_size = 512; int max_size = 512;
ASSERT_OK(sim_cache->StartActivityLogging(log_file, env_, max_size)); ASSERT_OK(sim_cache->StartActivityLogging(log_file, env_, max_size));
for (int it = 0; it < 10; it++) { for (int it = 0; it < 10; it++) {

@ -668,7 +668,6 @@ TEST_F(TtlTest, ChangeTtlOnOpenDb) {
OpenTtl(1); // T=0:Open the db with ttl = 2 OpenTtl(1); // T=0:Open the db with ttl = 2
SetTtl(3); SetTtl(3);
// @lint-ignore TXT2 T25377293 Grandfathered in
PutValues(0, kSampleSize_); // T=0:Insert Set1. Delete at t=2 PutValues(0, kSampleSize_); // T=0:Insert Set1. Delete at t=2
SleepCompactCheck(2, 0, kSampleSize_, true); // T=2:Set1 should be there SleepCompactCheck(2, 0, kSampleSize_, true); // T=2:Set1 should be there
CloseTtl(); CloseTtl();

Loading…
Cancel
Save