summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdong <siying.d@fb.com>2022-08-11 12:45:50 -0700
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>2022-08-11 12:45:50 -0700
commit9277569ba3006f90e8615470262ff445db212d2f (patch)
tree1df16da72ab131708cd4608a8f19551c50b7f732
parent5d3aefb6821eef8816fdee74262702b1d9255f50 (diff)
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
-rw-r--r--db/import_column_family_job.cc6
-rw-r--r--db/import_column_family_job.h6
-rw-r--r--db/import_column_family_test.cc6
-rw-r--r--db/table_cache_sync_and_async.h3
-rw-r--r--fuzz/db_fuzzer.cc6
-rw-r--r--fuzz/util.h6
-rw-r--r--java/rocksjni/concurrent_task_limiter.cc6
-rw-r--r--java/src/main/java/org/rocksdb/ByteBufferGetStatus.java6
-rw-r--r--java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java6
-rw-r--r--java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java6
-rw-r--r--java/src/main/java/org/rocksdb/ConfigOptions.java6
-rw-r--r--java/src/main/java/org/rocksdb/SanityLevel.java6
-rw-r--r--java/src/main/java/org/rocksdb/util/ByteUtil.java6
-rw-r--r--java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java6
-rw-r--r--java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java6
-rw-r--r--java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java6
-rw-r--r--java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java6
-rw-r--r--java/src/test/java/org/rocksdb/util/JNIComparatorTest.java6
-rw-r--r--table/block_based/block_based_table_reader_sync_and_async.h3
-rw-r--r--tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py7
-rw-r--r--util/async_file_reader.cc3
-rw-r--r--util/async_file_reader.h6
-rw-r--r--util/coro_utils.h3
-rw-r--r--util/single_thread_executor.h3
-rw-r--r--utilities/transactions/lock/point/point_lock_manager_test.h5
25 files changed, 127 insertions, 8 deletions
diff --git a/db/import_column_family_job.cc b/db/import_column_family_job.cc
index 12498b9e8..0832ff571 100644
--- a/db/import_column_family_job.cc
+++ b/db/import_column_family_job.cc
@@ -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"
diff --git a/db/import_column_family_job.h b/db/import_column_family_job.h
index 59e85c734..57c49c67f 100644
--- a/db/import_column_family_job.h
+++ b/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>
diff --git a/db/import_column_family_test.cc b/db/import_column_family_test.cc
index c78ecfad6..2847ea8da 100644
--- a/db/import_column_family_test.cc
+++ b/db/import_column_family_test.cc
@@ -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>
diff --git a/db/table_cache_sync_and_async.h b/db/table_cache_sync_and_async.h
index a89ec739a..4b3ec6c77 100644
--- a/db/table_cache_sync_and_async.h
+++ b/db/table_cache_sync_and_async.h
@@ -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).
diff --git a/fuzz/db_fuzzer.cc b/fuzz/db_fuzzer.cc
index 383a95096..e6d5bb63c 100644
--- a/fuzz/db_fuzzer.cc
+++ b/fuzz/db_fuzzer.cc
@@ -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"
diff --git a/fuzz/util.h b/fuzz/util.h
index 44ffaf536..97011823a 100644
--- a/fuzz/util.h
+++ b/fuzz/util.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) \
diff --git a/java/rocksjni/concurrent_task_limiter.cc b/java/rocksjni/concurrent_task_limiter.cc
index d88a32301..0b0b2d271 100644
--- a/java/rocksjni/concurrent_task_limiter.cc
+++ b/java/rocksjni/concurrent_task_limiter.cc
@@ -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>
diff --git a/java/src/main/java/org/rocksdb/ByteBufferGetStatus.java b/java/src/main/java/org/rocksdb/ByteBufferGetStatus.java
index b836480af..8eef95447 100644
--- a/java/src/main/java/org/rocksdb/ByteBufferGetStatus.java
+++ b/java/src/main/java/org/rocksdb/ByteBufferGetStatus.java
@@ -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;
diff --git a/java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java b/java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java
index 3504264e7..b4e34303b 100644
--- a/java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java
+++ b/java/src/main/java/org/rocksdb/ConcurrentTaskLimiter.java
@@ -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 {
diff --git a/java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java b/java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java
index 0f6026dc2..d28b9060a 100644
--- a/java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java
+++ b/java/src/main/java/org/rocksdb/ConcurrentTaskLimiterImpl.java
@@ -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 {
diff --git a/java/src/main/java/org/rocksdb/ConfigOptions.java b/java/src/main/java/org/rocksdb/ConfigOptions.java
index 83f65db5c..4d93f0c99 100644
--- a/java/src/main/java/org/rocksdb/ConfigOptions.java
+++ b/java/src/main/java/org/rocksdb/ConfigOptions.java
@@ -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 {
diff --git a/java/src/main/java/org/rocksdb/SanityLevel.java b/java/src/main/java/org/rocksdb/SanityLevel.java
index 645dbba41..30568c363 100644
--- a/java/src/main/java/org/rocksdb/SanityLevel.java
+++ b/java/src/main/java/org/rocksdb/SanityLevel.java
@@ -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 {
diff --git a/java/src/main/java/org/rocksdb/util/ByteUtil.java b/java/src/main/java/org/rocksdb/util/ByteUtil.java
index 9014fcba0..5d64d5dcf 100644
--- a/java/src/main/java/org/rocksdb/util/ByteUtil.java
+++ b/java/src/main/java/org/rocksdb/util/ByteUtil.java
@@ -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;
diff --git a/java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java b/java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java
index 9bbf1f1ed..165f4f24c 100644
--- a/java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java
+++ b/java/src/test/java/org/rocksdb/ConcurrentTaskLimiterTest.java
@@ -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;
diff --git a/java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java b/java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java
index e94244424..8d7956cf2 100644
--- a/java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java
+++ b/java/src/test/java/org/rocksdb/util/ByteBufferAllocator.java
@@ -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;
diff --git a/java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java b/java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java
index 13955e73d..d26fb578b 100644
--- a/java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java
+++ b/java/src/test/java/org/rocksdb/util/DirectByteBufferAllocator.java
@@ -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;
diff --git a/java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java b/java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java
index 7dc2ded6d..ad6b8f6f4 100644
--- a/java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java
+++ b/java/src/test/java/org/rocksdb/util/HeapByteBufferAllocator.java
@@ -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;
diff --git a/java/src/test/java/org/rocksdb/util/JNIComparatorTest.java b/java/src/test/java/org/rocksdb/util/JNIComparatorTest.java
index 6ffa2785f..a962b8d78 100644
--- a/java/src/test/java/org/rocksdb/util/JNIComparatorTest.java
+++ b/java/src/test/java/org/rocksdb/util/JNIComparatorTest.java
@@ -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;
diff --git a/table/block_based/block_based_table_reader_sync_and_async.h b/table/block_based/block_based_table_reader_sync_and_async.h
index 728efc55a..4a035aeae 100644
--- a/table/block_based/block_based_table_reader_sync_and_async.h
+++ b/table/block_based/block_based_table_reader_sync_and_async.h
@@ -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).
diff --git a/tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py b/tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py
index 0fdaa4158..aa6008ab9 100644
--- a/tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py
+++ b/tools/block_cache_analyzer/block_cache_trace_analyzer_plot.py
@@ -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
diff --git a/util/async_file_reader.cc b/util/async_file_reader.cc
index 83f6afc6e..8401a6b44 100644
--- a/util/async_file_reader.cc
+++ b/util/async_file_reader.cc
@@ -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).
diff --git a/util/async_file_reader.h b/util/async_file_reader.h
index 7ee72954c..df69a840e 100644
--- a/util/async_file_reader.h
+++ b/util/async_file_reader.h
@@ -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
diff --git a/util/coro_utils.h b/util/coro_utils.h
index 38d278000..5b4211135 100644
--- a/util/coro_utils.h
+++ b/util/coro_utils.h
@@ -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).
diff --git a/util/single_thread_executor.h b/util/single_thread_executor.h
index b82ddda2b..c69f2a292 100644
--- a/util/single_thread_executor.h
+++ b/util/single_thread_executor.h
@@ -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).
diff --git a/utilities/transactions/lock/point/point_lock_manager_test.h b/utilities/transactions/lock/point/point_lock_manager_test.h
index 50b268ab1..ca9f46bf9 100644
--- a/utilities/transactions/lock/point/point_lock_manager_test.h
+++ b/utilities/transactions/lock/point/point_lock_manager_test.h
@@ -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"