Add some missing headers (#10519)

Summary:
Some files miss headers. Also some headers are irregular. Fix them to make an internal checkup tool happy.

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

Reviewed By: jay-zhuang

Differential Revision: D38603291

fbshipit-source-id: 13b1bbd6d48f5ee15ba20da67544396de48238f1
main
sdong 2 years ago committed by Facebook GitHub Bot
parent 5d3aefb682
commit 9277569ba3
  1. 6
      db/import_column_family_job.cc
  2. 6
      db/import_column_family_job.h
  3. 6
      db/import_column_family_test.cc
  4. 3
      db/table_cache_sync_and_async.h
  5. 6
      fuzz/db_fuzzer.cc
  6. 6
      fuzz/util.h
  7. 6
      java/rocksjni/concurrent_task_limiter.cc
  8. 6
      java/src/main/java/org/rocksdb/ByteBufferGetStatus.java
  9. 6
      java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java
  10. 6
      java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java
  11. 6
      java/src/main/java/org/rocksdb/ConfigOptions.java
  12. 6
      java/src/main/java/org/rocksdb/SanityLevel.java
  13. 6
      java/src/main/java/org/rocksdb/util/ByteUtil.java
  14. 6
      java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java
  15. 6
      java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java
  16. 6
      java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java
  17. 6
      java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java
  18. 6
      java/src/test/java/org/rocksdb/util/JNIComparatorTest.java
  19. 3
      table/block_based/block_based_table_reader_sync_and_async.h
  20. 7
      tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py
  21. 3
      util/async_file_reader.cc
  22. 6
      util/async_file_reader.h
  23. 3
      util/coro_utils.h
  24. 3
      util/single_thread_executor.h
  25. 5
      utilities/transactions/lock/point/point_lock_manager_test.h

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#include "db/import_column_family_job.h"

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
#include <string>
#include <unordered_set>

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#include <functional>

@ -1,4 +1,5 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#include <fuzzer/FuzzedDataProvider.h>
#include "rocksdb/db.h"

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#pragma once
#define CHECK_OK(expression) \

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#include "rocksdb/concurrent_task_limiter.h"
#include <jni.h>

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
import java.nio.ByteBuffer;

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
public abstract class ConcurrentTaskLimiter extends RocksObject {

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
public class ConcurrentTaskLimiterImpl extends ConcurrentTaskLimiter {

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
public class ConfigOptions extends RocksObject {

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
public enum SanityLevel {

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb.util;
import java.nio.ByteBuffer;

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
import static org.junit.Assert.assertEquals;

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb.util;
import java.nio.ByteBuffer;

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb.util;
import java.nio.ByteBuffer;

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb.util;
import java.nio.ByteBuffer;

@ -1,3 +1,9 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb.util;
import org.junit.ClassRule;

@ -1,4 +1,5 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).

@ -1,4 +1,11 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under both the GPLv2 (found in the
# COPYING file in the root directory) and Apache 2.0 License
# (found in the LICENSE.Apache file in the root directory).
#!/usr/bin/env python3
import csv
import math
import os

@ -1,4 +1,5 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).

@ -1,8 +1,8 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
// (found in the LICENSE.Apache file in the root directory).#pragma once
#pragma once
#if USE_COROUTINES

@ -1,4 +1,5 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).

@ -1,4 +1,5 @@
// Copyright (c) Meta Platforms, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).

@ -1,3 +1,8 @@
// Copyright (c) Meta Platforms, Inc. and affiliates.
//
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#include "file/file_util.h"
#include "port/port.h"

Loading…
Cancel
Save