From 6c2bf9e916db3dc7a43c70f3c0a482b8f7d54bdf Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Thu, 18 Apr 2019 10:51:19 -0700 Subject: [PATCH] Add copyright headers per FB open-source checkup tool. (#5199) Summary: internal task: T35568575 Pull Request resolved: https://github.com/facebook/rocksdb/pull/5199 Differential Revision: D14962794 Pulled By: gfosco fbshipit-source-id: 93838ede6d0235eaecff90d200faed9a8515bbbe --- buckifier/buckify_rocksdb.py | 3 ++- buckifier/rocks_test_runner.sh | 1 + buckifier/targets_builder.py | 1 + buckifier/targets_cfg.py | 1 + buckifier/util.py | 1 + build_tools/amalgamate.py | 1 + build_tools/dependencies.sh | 1 + build_tools/dependencies_4.8.1.sh | 1 + build_tools/dependencies_platform007.sh | 1 + build_tools/dockerbuild.sh | 1 + build_tools/fb_compile_mongo.sh | 2 +- build_tools/fbcode_config.sh | 1 + build_tools/fbcode_config4.8.1.sh | 1 + build_tools/fbcode_config_platform007.sh | 1 + build_tools/format-diff.sh | 1 + build_tools/make_package.sh | 1 + build_tools/precommit_checker.py | 1 + build_tools/regression_build_test.sh | 1 + build_tools/run_ci_db_test.ps1 | 1 + build_tools/setup_centos7.sh | 1 + build_tools/update_dependencies.sh | 1 + build_tools/version.sh | 1 + coverage/coverage_test.sh | 1 + coverage/parse_gcov_output.py | 1 + db/c_test.c | 1 + db/internal_stats.cc | 2 ++ defs.bzl | 2 ++ env/env_basic_test.cc | 2 ++ env/mock_env_test.cc | 2 ++ hdfs/setup.sh | 1 + include/rocksdb/listener.h | 2 ++ include/rocksdb/table.h | 1 + include/rocksdb/table_properties.h | 1 + include/rocksdb/utilities/env_mirror.h | 1 + include/rocksdb/utilities/stackable_db.h | 1 + include/rocksdb/utilities/utility_db.h | 1 + java/crossbuild/build-linux-centos.sh | 1 + java/crossbuild/build-linux.sh | 1 + java/crossbuild/docker-build-linux-centos.sh | 1 + java/jdb_bench.sh | 1 + java/rocksjni/merge_operator.cc | 1 + java/src/main/java/org/rocksdb/AbstractMutableOptions.java | 1 + java/src/main/java/org/rocksdb/AbstractTableFilter.java | 1 + java/src/main/java/org/rocksdb/CompactionStopStyle.java | 1 + java/src/main/java/org/rocksdb/ComparatorOptions.java | 1 + .../main/java/org/rocksdb/HashLinkedListMemTableConfig.java | 1 + .../src/main/java/org/rocksdb/HashSkipListMemTableConfig.java | 1 + java/src/main/java/org/rocksdb/InfoLogLevel.java | 1 + java/src/main/java/org/rocksdb/MergeOperator.java | 1 + java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java | 1 + java/src/main/java/org/rocksdb/MutableOptionKey.java | 1 + java/src/main/java/org/rocksdb/MutableOptionValue.java | 1 + java/src/main/java/org/rocksdb/NativeLibraryLoader.java | 1 + java/src/main/java/org/rocksdb/SizeApproximationFlag.java | 1 + java/src/main/java/org/rocksdb/SkipListMemTableConfig.java | 1 + java/src/main/java/org/rocksdb/StringAppendOperator.java | 1 + java/src/main/java/org/rocksdb/TableFilter.java | 1 + java/src/main/java/org/rocksdb/TableProperties.java | 1 + java/src/main/java/org/rocksdb/TransactionLogIterator.java | 1 + java/src/main/java/org/rocksdb/VectorMemTableConfig.java | 1 + java/src/main/java/org/rocksdb/util/Environment.java | 1 + java/src/test/java/org/rocksdb/CheckPointTest.java | 1 + java/src/test/java/org/rocksdb/InfoLogLevelTest.java | 1 + java/src/test/java/org/rocksdb/LoggerTest.java | 1 + java/src/test/java/org/rocksdb/RocksMemoryResource.java | 1 + java/src/test/java/org/rocksdb/TableFilterTest.java | 1 + .../src/test/java/org/rocksdb/TransactionLogIteratorTest.java | 1 + .../rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java | 1 + .../java/org/rocksdb/util/CapturingWriteBatchHandler.java | 1 + java/src/test/java/org/rocksdb/util/WriteBatchGetter.java | 1 + table/adaptive_table_factory.cc | 1 + table/adaptive_table_factory.h | 1 + table/plain_table_factory.cc | 1 + table/plain_table_factory.h | 1 + table/plain_table_reader.cc | 1 + table/plain_table_reader.h | 1 + thirdparty.inc | 1 + tools/analyze_txn_stress_test.sh | 1 + tools/auto_sanity_test.sh | 1 + tools/benchmark.sh | 1 + tools/benchmark_leveldb.sh | 1 + tools/check_format_compatible.sh | 1 + tools/db_crashtest.py | 1 + tools/generate_random_db.sh | 1 + tools/ingest_external_sst.sh | 1 + tools/ldb_test.py | 1 + tools/rdb/db_wrapper.cc | 1 + tools/rdb/db_wrapper.h | 1 + tools/rdb/rdb.cc | 1 + tools/rdb/unit_test.js | 1 + tools/regression_test.sh | 1 + tools/report_lite_binary_size.sh | 1 + tools/rocksdb_dump_test.sh | 1 + tools/run_flash_bench.sh | 1 + tools/run_leveldb.sh | 1 + tools/verify_random_db.sh | 1 + tools/write_external_sst.sh | 2 +- tools/write_stress_runner.py | 1 + util/build_version.cc.in | 1 + util/crc32c_ppc.c | 1 + util/crc32c_ppc.h | 1 + util/crc32c_ppc_asm.S | 1 + util/crc32c_ppc_constants.h | 1 + util/ppc-opcode.h | 1 + util/vector_iterator.h | 1 + util/xxhash.cc | 1 + util/xxhash.h | 1 + utilities/env_librados.cc | 4 ++-- utilities/env_librados_test.cc | 1 + utilities/env_mirror.cc | 1 + utilities/env_mirror_test.cc | 1 + utilities/merge_operators/string_append/stringappend2.h | 1 + utilities/ttl/db_ttl_impl.cc | 1 + utilities/ttl/db_ttl_impl.h | 1 + utilities/ttl/ttl_test.cc | 1 + 115 files changed, 122 insertions(+), 5 deletions(-) diff --git a/buckifier/buckify_rocksdb.py b/buckifier/buckify_rocksdb.py index 96903af68..a5d71b65d 100644 --- a/buckifier/buckify_rocksdb.py +++ b/buckifier/buckify_rocksdb.py @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function @@ -81,7 +82,7 @@ def get_tests(repo_path): else: # we consumed all the parallel tests break - + return tests diff --git a/buckifier/rocks_test_runner.sh b/buckifier/rocks_test_runner.sh index baca6c2e4..77f8f23c5 100755 --- a/buckifier/rocks_test_runner.sh +++ b/buckifier/rocks_test_runner.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Create a tmp directory for the test to use TEST_DIR=$(mktemp -d /dev/shm/fbcode_rocksdb_XXXXXXX) # shellcheck disable=SC2068 diff --git a/buckifier/targets_builder.py b/buckifier/targets_builder.py index 3d5822d3c..493cd8a8a 100644 --- a/buckifier/targets_builder.py +++ b/buckifier/targets_builder.py @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/buckifier/targets_cfg.py b/buckifier/targets_cfg.py index f881588c5..730b5ebf9 100644 --- a/buckifier/targets_cfg.py +++ b/buckifier/targets_cfg.py @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/buckifier/util.py b/buckifier/util.py index 350b7335c..2eda69f10 100644 --- a/buckifier/util.py +++ b/buckifier/util.py @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. """ This module keeps commonly used components. """ diff --git a/build_tools/amalgamate.py b/build_tools/amalgamate.py index 548b1e8ce..c5cbb3f0f 100755 --- a/build_tools/amalgamate.py +++ b/build_tools/amalgamate.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # amalgamate.py creates an amalgamation from a unity build. # It can be run with either Python 2 or 3. diff --git a/build_tools/dependencies.sh b/build_tools/dependencies.sh index 868e0bbdd..c6e074b64 100644 --- a/build_tools/dependencies.sh +++ b/build_tools/dependencies.sh @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. GCC_BASE=/mnt/gvfs/third-party2/gcc/112ec378fec7002ad3e09afde022e656049f7191/5.x/centos7-native/c447969 CLANG_BASE=/mnt/gvfs/third-party2/llvm-fb/04999bdb3ce81a11073535dcb00b5e13dc1cbaf5/stable/centos7-native/c9f9104 LIBGCC_BASE=/mnt/gvfs/third-party2/libgcc/92b0c8e5c8eecc71eb042594ce1ab3413799b385/5.x/gcc-5-glibc-2.23/339d858 diff --git a/build_tools/dependencies_4.8.1.sh b/build_tools/dependencies_4.8.1.sh index bd02165d8..5c8f7e4f8 100644 --- a/build_tools/dependencies_4.8.1.sh +++ b/build_tools/dependencies_4.8.1.sh @@ -1,4 +1,5 @@ # shellcheck disable=SC2148 +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. GCC_BASE=/mnt/gvfs/third-party2/gcc/cf7d14c625ce30bae1a4661c2319c5a283e4dd22/4.8.1/centos6-native/cc6c9dc CLANG_BASE=/mnt/gvfs/third-party2/llvm-fb/8598c375b0e94e1448182eb3df034704144a838d/stable/centos6-native/3f16ddd LIBGCC_BASE=/mnt/gvfs/third-party2/libgcc/d6e0a7da6faba45f5e5b1638f9edd7afc2f34e7d/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc diff --git a/build_tools/dependencies_platform007.sh b/build_tools/dependencies_platform007.sh index 44e9e58f8..004bccb53 100644 --- a/build_tools/dependencies_platform007.sh +++ b/build_tools/dependencies_platform007.sh @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. GCC_BASE=/mnt/gvfs/third-party2/gcc/6e8e715624fd15256a7970073387793dfcf79b46/7.x/centos7-native/b2ef2b6 CLANG_BASE=/mnt/gvfs/third-party2/llvm-fb/ef37e1faa1c29782abfac1ae65a291b9b7966f6d/stable/centos7-native/c9f9104 LIBGCC_BASE=/mnt/gvfs/third-party2/libgcc/c67031f0f739ac61575a061518d6ef5038f99f90/7.x/platform007/5620abc diff --git a/build_tools/dockerbuild.sh b/build_tools/dockerbuild.sh index 02f609442..c0caede4a 100755 --- a/build_tools/dockerbuild.sh +++ b/build_tools/dockerbuild.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. docker run -v $PWD:/rocks -w /rocks buildpack-deps make diff --git a/build_tools/fb_compile_mongo.sh b/build_tools/fb_compile_mongo.sh index c087f8161..ec733cdf1 100755 --- a/build_tools/fb_compile_mongo.sh +++ b/build_tools/fb_compile_mongo.sh @@ -1,5 +1,5 @@ #!/bin/sh - +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # fail early set -e diff --git a/build_tools/fbcode_config.sh b/build_tools/fbcode_config.sh index f46a580bd..4415f87da 100644 --- a/build_tools/fbcode_config.sh +++ b/build_tools/fbcode_config.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # Set environment variables so that we can compile rocksdb using # fbcode settings. It uses the latest g++ and clang compilers and also diff --git a/build_tools/fbcode_config4.8.1.sh b/build_tools/fbcode_config4.8.1.sh index c40c10131..80fbdf431 100644 --- a/build_tools/fbcode_config4.8.1.sh +++ b/build_tools/fbcode_config4.8.1.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # Set environment variables so that we can compile rocksdb using # fbcode settings. It uses the latest g++ compiler and also diff --git a/build_tools/fbcode_config_platform007.sh b/build_tools/fbcode_config_platform007.sh index 67d156e4c..1a1e42081 100644 --- a/build_tools/fbcode_config_platform007.sh +++ b/build_tools/fbcode_config_platform007.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # Set environment variables so that we can compile rocksdb using # fbcode settings. It uses the latest g++ and clang compilers and also diff --git a/build_tools/format-diff.sh b/build_tools/format-diff.sh index 81221ed9a..f8fbb64fb 100755 --- a/build_tools/format-diff.sh +++ b/build_tools/format-diff.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # If clang_format_diff.py command is not specfied, we assume we are able to # access directly without any path. if [ -z $CLANG_FORMAT_DIFF ] diff --git a/build_tools/make_package.sh b/build_tools/make_package.sh index 0d86548e8..7b5c52cff 100755 --- a/build_tools/make_package.sh +++ b/build_tools/make_package.sh @@ -1,5 +1,6 @@ # shellcheck disable=SC1113 #/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. set -e diff --git a/build_tools/precommit_checker.py b/build_tools/precommit_checker.py index 0f8884dfd..74f75aa03 100755 --- a/build_tools/precommit_checker.py +++ b/build_tools/precommit_checker.py @@ -1,4 +1,5 @@ #!/usr/local/fbcode/gcc-4.9-glibc-2.20-fb/bin/python2.7 +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from __future__ import absolute_import from __future__ import division diff --git a/build_tools/regression_build_test.sh b/build_tools/regression_build_test.sh index 698063328..bcf8907cc 100755 --- a/build_tools/regression_build_test.sh +++ b/build_tools/regression_build_test.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. set -e diff --git a/build_tools/run_ci_db_test.ps1 b/build_tools/run_ci_db_test.ps1 index 0f8198b48..883d4e2a5 100644 --- a/build_tools/run_ci_db_test.ps1 +++ b/build_tools/run_ci_db_test.ps1 @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # This script enables you running RocksDB tests by running # All the tests concurrently and utilizing all the cores Param( diff --git a/build_tools/setup_centos7.sh b/build_tools/setup_centos7.sh index c633131de..060614dd1 100755 --- a/build_tools/setup_centos7.sh +++ b/build_tools/setup_centos7.sh @@ -1,4 +1,5 @@ #!/bin/bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. set -e ROCKSDB_VERSION="5.10.3" diff --git a/build_tools/update_dependencies.sh b/build_tools/update_dependencies.sh index b060544df..9af8c60d1 100755 --- a/build_tools/update_dependencies.sh +++ b/build_tools/update_dependencies.sh @@ -1,4 +1,5 @@ #!/bin/sh +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # Update dependencies.sh file with the latest avaliable versions diff --git a/build_tools/version.sh b/build_tools/version.sh index 4e3b9f20d..dbc1a9296 100755 --- a/build_tools/version.sh +++ b/build_tools/version.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. if [ "$#" = "0" ]; then echo "Usage: $0 major|minor|patch|full" exit 1 diff --git a/coverage/coverage_test.sh b/coverage/coverage_test.sh index 6d87ae908..2f40ed61a 100755 --- a/coverage/coverage_test.sh +++ b/coverage/coverage_test.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Exit on error. set -e diff --git a/coverage/parse_gcov_output.py b/coverage/parse_gcov_output.py index 4c358610c..fbdabd968 100644 --- a/coverage/parse_gcov_output.py +++ b/coverage/parse_gcov_output.py @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import re import sys diff --git a/db/c_test.c b/db/c_test.c index 39b8b1cfb..e403ce572 100644 --- a/db/c_test.c +++ b/db/c_test.c @@ -1,6 +1,7 @@ /* Copyright (c) 2011 The LevelDB Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. See the AUTHORS file for names of contributors. */ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include diff --git a/db/internal_stats.cc b/db/internal_stats.cc index 51e55f583..57c7427e8 100644 --- a/db/internal_stats.cc +++ b/db/internal_stats.cc @@ -2,6 +2,8 @@ // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. +// // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/defs.bzl b/defs.bzl index 4468cebdd..f3e833978 100644 --- a/defs.bzl +++ b/defs.bzl @@ -1,3 +1,5 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. + load("@fbcode_macros//build_defs:cpp_binary.bzl", "cpp_binary") load("@fbcode_macros//build_defs:custom_unittest.bzl", "custom_unittest") diff --git a/env/env_basic_test.cc b/env/env_basic_test.cc index 3efae758a..93764d945 100644 --- a/env/env_basic_test.cc +++ b/env/env_basic_test.cc @@ -1,6 +1,8 @@ // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. +// +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include #include diff --git a/env/mock_env_test.cc b/env/mock_env_test.cc index 2daf682e7..97c49b5f5 100644 --- a/env/mock_env_test.cc +++ b/env/mock_env_test.cc @@ -1,6 +1,8 @@ // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. +// +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include "env/mock_env.h" diff --git a/hdfs/setup.sh b/hdfs/setup.sh index ba76ec209..2d5cda618 100755 --- a/hdfs/setup.sh +++ b/hdfs/setup.sh @@ -1,4 +1,5 @@ # shellcheck disable=SC2148 +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. export USE_HDFS=1 export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64:$HADOOP_HOME/lib/native diff --git a/include/rocksdb/listener.h b/include/rocksdb/listener.h index d5ccf47e5..5be55cbed 100644 --- a/include/rocksdb/listener.h +++ b/include/rocksdb/listener.h @@ -1,6 +1,8 @@ // Copyright (c) 2014 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. +// +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once diff --git a/include/rocksdb/table.h b/include/rocksdb/table.h index 6c584375c..b154a60a0 100644 --- a/include/rocksdb/table.h +++ b/include/rocksdb/table.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/include/rocksdb/table_properties.h b/include/rocksdb/table_properties.h index 06cdeef1e..a3efe00a2 100644 --- a/include/rocksdb/table_properties.h +++ b/include/rocksdb/table_properties.h @@ -1,6 +1,7 @@ // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once #include diff --git a/include/rocksdb/utilities/env_mirror.h b/include/rocksdb/utilities/env_mirror.h index 6d513fc79..4b6b66e04 100644 --- a/include/rocksdb/utilities/env_mirror.h +++ b/include/rocksdb/utilities/env_mirror.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2015, Red Hat, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/include/rocksdb/utilities/stackable_db.h b/include/rocksdb/utilities/stackable_db.h index dd3e09016..6e98a48e5 100644 --- a/include/rocksdb/utilities/stackable_db.h +++ b/include/rocksdb/utilities/stackable_db.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/include/rocksdb/utilities/utility_db.h b/include/rocksdb/utilities/utility_db.h index 3008fee1a..0646b8b3c 100644 --- a/include/rocksdb/utilities/utility_db.h +++ b/include/rocksdb/utilities/utility_db.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/java/crossbuild/build-linux-centos.sh b/java/crossbuild/build-linux-centos.sh index c532398f6..a9b5e0a92 100755 --- a/java/crossbuild/build-linux-centos.sh +++ b/java/crossbuild/build-linux-centos.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. set -e diff --git a/java/crossbuild/build-linux.sh b/java/crossbuild/build-linux.sh index 48d1c28d9..74178adb5 100755 --- a/java/crossbuild/build-linux.sh +++ b/java/crossbuild/build-linux.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # install all required packages for rocksdb sudo apt-get update sudo apt-get -y install git make gcc g++ libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev default-jdk diff --git a/java/crossbuild/docker-build-linux-centos.sh b/java/crossbuild/docker-build-linux-centos.sh index d894b14a2..aedcb8af7 100755 --- a/java/crossbuild/docker-build-linux-centos.sh +++ b/java/crossbuild/docker-build-linux-centos.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. set -e #set -x diff --git a/java/jdb_bench.sh b/java/jdb_bench.sh index 0a07fa8e2..5dfc385e3 100755 --- a/java/jdb_bench.sh +++ b/java/jdb_bench.sh @@ -1,4 +1,5 @@ # shellcheck disable=SC2148 +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. PLATFORM=64 if [ `getconf LONG_BIT` != "64" ] then diff --git a/java/rocksjni/merge_operator.cc b/java/rocksjni/merge_operator.cc index e06a06f7e..636ab9f45 100644 --- a/java/rocksjni/merge_operator.cc +++ b/java/rocksjni/merge_operator.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/java/src/main/java/org/rocksdb/AbstractMutableOptions.java b/java/src/main/java/org/rocksdb/AbstractMutableOptions.java index 63015c39a..4f843d87e 100644 --- a/java/src/main/java/org/rocksdb/AbstractMutableOptions.java +++ b/java/src/main/java/org/rocksdb/AbstractMutableOptions.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import java.util.*; diff --git a/java/src/main/java/org/rocksdb/AbstractTableFilter.java b/java/src/main/java/org/rocksdb/AbstractTableFilter.java index 627e1ae1f..c696c3e13 100644 --- a/java/src/main/java/org/rocksdb/AbstractTableFilter.java +++ b/java/src/main/java/org/rocksdb/AbstractTableFilter.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/CompactionStopStyle.java b/java/src/main/java/org/rocksdb/CompactionStopStyle.java index 13cc873c3..f6e63209c 100644 --- a/java/src/main/java/org/rocksdb/CompactionStopStyle.java +++ b/java/src/main/java/org/rocksdb/CompactionStopStyle.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/ComparatorOptions.java b/java/src/main/java/org/rocksdb/ComparatorOptions.java index 3a05befa4..8ae87f788 100644 --- a/java/src/main/java/org/rocksdb/ComparatorOptions.java +++ b/java/src/main/java/org/rocksdb/ComparatorOptions.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java b/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java index d56c46c29..b943cd996 100644 --- a/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java b/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java index fe1779b1c..efc78b14e 100644 --- a/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/InfoLogLevel.java b/java/src/main/java/org/rocksdb/InfoLogLevel.java index 2c97991b5..0051ea39f 100644 --- a/java/src/main/java/org/rocksdb/InfoLogLevel.java +++ b/java/src/main/java/org/rocksdb/InfoLogLevel.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/MergeOperator.java b/java/src/main/java/org/rocksdb/MergeOperator.java index 296527f53..c299f6221 100644 --- a/java/src/main/java/org/rocksdb/MergeOperator.java +++ b/java/src/main/java/org/rocksdb/MergeOperator.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java b/java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java index 5fe3215b3..1715d69d0 100644 --- a/java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java +++ b/java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; public interface MutableDBOptionsInterface { diff --git a/java/src/main/java/org/rocksdb/MutableOptionKey.java b/java/src/main/java/org/rocksdb/MutableOptionKey.java index 7402471ff..ec1b9ff3b 100644 --- a/java/src/main/java/org/rocksdb/MutableOptionKey.java +++ b/java/src/main/java/org/rocksdb/MutableOptionKey.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; public interface MutableOptionKey { diff --git a/java/src/main/java/org/rocksdb/MutableOptionValue.java b/java/src/main/java/org/rocksdb/MutableOptionValue.java index 3727f7c1f..8ec63269f 100644 --- a/java/src/main/java/org/rocksdb/MutableOptionValue.java +++ b/java/src/main/java/org/rocksdb/MutableOptionValue.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import static org.rocksdb.AbstractMutableOptions.INT_ARRAY_INT_SEPARATOR; diff --git a/java/src/main/java/org/rocksdb/NativeLibraryLoader.java b/java/src/main/java/org/rocksdb/NativeLibraryLoader.java index 96d364cd1..6e37e8cf2 100644 --- a/java/src/main/java/org/rocksdb/NativeLibraryLoader.java +++ b/java/src/main/java/org/rocksdb/NativeLibraryLoader.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import java.io.*; diff --git a/java/src/main/java/org/rocksdb/SizeApproximationFlag.java b/java/src/main/java/org/rocksdb/SizeApproximationFlag.java index 7807e7c83..fe3c2dd05 100644 --- a/java/src/main/java/org/rocksdb/SizeApproximationFlag.java +++ b/java/src/main/java/org/rocksdb/SizeApproximationFlag.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import java.util.List; diff --git a/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java b/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java index e31e19916..e2c1b97d8 100644 --- a/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/SkipListMemTableConfig.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/StringAppendOperator.java b/java/src/main/java/org/rocksdb/StringAppendOperator.java index 978cad6cc..ae525d4dc 100644 --- a/java/src/main/java/org/rocksdb/StringAppendOperator.java +++ b/java/src/main/java/org/rocksdb/StringAppendOperator.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/java/src/main/java/org/rocksdb/TableFilter.java b/java/src/main/java/org/rocksdb/TableFilter.java index 45605063b..a39a329fb 100644 --- a/java/src/main/java/org/rocksdb/TableFilter.java +++ b/java/src/main/java/org/rocksdb/TableFilter.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/TableProperties.java b/java/src/main/java/org/rocksdb/TableProperties.java index 5fe98da67..8c0b7e370 100644 --- a/java/src/main/java/org/rocksdb/TableProperties.java +++ b/java/src/main/java/org/rocksdb/TableProperties.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import java.util.Map; diff --git a/java/src/main/java/org/rocksdb/TransactionLogIterator.java b/java/src/main/java/org/rocksdb/TransactionLogIterator.java index b6bfc495b..5d9ec58d7 100644 --- a/java/src/main/java/org/rocksdb/TransactionLogIterator.java +++ b/java/src/main/java/org/rocksdb/TransactionLogIterator.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/VectorMemTableConfig.java b/java/src/main/java/org/rocksdb/VectorMemTableConfig.java index 378340248..fb1e7a948 100644 --- a/java/src/main/java/org/rocksdb/VectorMemTableConfig.java +++ b/java/src/main/java/org/rocksdb/VectorMemTableConfig.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; /** diff --git a/java/src/main/java/org/rocksdb/util/Environment.java b/java/src/main/java/org/rocksdb/util/Environment.java index bf005a348..c01926648 100644 --- a/java/src/main/java/org/rocksdb/util/Environment.java +++ b/java/src/main/java/org/rocksdb/util/Environment.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb.util; public class Environment { diff --git a/java/src/test/java/org/rocksdb/CheckPointTest.java b/java/src/test/java/org/rocksdb/CheckPointTest.java index e79569fb8..9b1ea209a 100644 --- a/java/src/test/java/org/rocksdb/CheckPointTest.java +++ b/java/src/test/java/org/rocksdb/CheckPointTest.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; diff --git a/java/src/test/java/org/rocksdb/InfoLogLevelTest.java b/java/src/test/java/org/rocksdb/InfoLogLevelTest.java index b215dd17f..a9b54d52c 100644 --- a/java/src/test/java/org/rocksdb/InfoLogLevelTest.java +++ b/java/src/test/java/org/rocksdb/InfoLogLevelTest.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import org.junit.ClassRule; diff --git a/java/src/test/java/org/rocksdb/LoggerTest.java b/java/src/test/java/org/rocksdb/LoggerTest.java index f83cff3b7..9ece0355b 100644 --- a/java/src/test/java/org/rocksdb/LoggerTest.java +++ b/java/src/test/java/org/rocksdb/LoggerTest.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import org.junit.ClassRule; diff --git a/java/src/test/java/org/rocksdb/RocksMemoryResource.java b/java/src/test/java/org/rocksdb/RocksMemoryResource.java index 6fd1c7e66..8463e8624 100644 --- a/java/src/test/java/org/rocksdb/RocksMemoryResource.java +++ b/java/src/test/java/org/rocksdb/RocksMemoryResource.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import org.junit.rules.ExternalResource; diff --git a/java/src/test/java/org/rocksdb/TableFilterTest.java b/java/src/test/java/org/rocksdb/TableFilterTest.java index 862696763..2bd3b1798 100644 --- a/java/src/test/java/org/rocksdb/TableFilterTest.java +++ b/java/src/test/java/org/rocksdb/TableFilterTest.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import org.junit.Rule; diff --git a/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java b/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java index b619258ec..a85d7c16e 100644 --- a/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java +++ b/java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb; import org.junit.ClassRule; diff --git a/java/src/test/java/org/rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java b/java/src/test/java/org/rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java index 11ffedf31..c4e4f25a0 100644 --- a/java/src/test/java/org/rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java +++ b/java/src/test/java/org/rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb.test; import org.rocksdb.AbstractCompactionFilter; diff --git a/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java b/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java index 83ac5d3d2..890819471 100644 --- a/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java +++ b/java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb.util; import org.rocksdb.RocksDBException; diff --git a/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java b/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java index a0d8d669d..646e8b8f8 100644 --- a/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java +++ b/java/src/test/java/org/rocksdb/util/WriteBatchGetter.java @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. package org.rocksdb.util; import org.rocksdb.RocksDBException; diff --git a/table/adaptive_table_factory.cc b/table/adaptive_table_factory.cc index bbba3b919..d5dcbc5f5 100644 --- a/table/adaptive_table_factory.cc +++ b/table/adaptive_table_factory.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/table/adaptive_table_factory.h b/table/adaptive_table_factory.h index 5534c8b37..9d606362e 100644 --- a/table/adaptive_table_factory.h +++ b/table/adaptive_table_factory.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/table/plain_table_factory.cc b/table/plain_table_factory.cc index a6e59c142..0dccec552 100644 --- a/table/plain_table_factory.cc +++ b/table/plain_table_factory.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/table/plain_table_factory.h b/table/plain_table_factory.h index 990df482e..dade15660 100644 --- a/table/plain_table_factory.h +++ b/table/plain_table_factory.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/table/plain_table_reader.cc b/table/plain_table_reader.cc index b0c6dcf07..f33afdefc 100644 --- a/table/plain_table_reader.cc +++ b/table/plain_table_reader.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/table/plain_table_reader.h b/table/plain_table_reader.h index 022886b72..14760f20a 100644 --- a/table/plain_table_reader.h +++ b/table/plain_table_reader.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/thirdparty.inc b/thirdparty.inc index f40b81fec..ed9d4c0f8 100644 --- a/thirdparty.inc +++ b/thirdparty.inc @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Edit definitions below to specify paths to include files and libraries of all 3rd party libraries # TODO: Make this work with find_package and/or get rid of it diff --git a/tools/analyze_txn_stress_test.sh b/tools/analyze_txn_stress_test.sh index 808260608..477b1fac5 100755 --- a/tools/analyze_txn_stress_test.sh +++ b/tools/analyze_txn_stress_test.sh @@ -1,4 +1,5 @@ #!/bin/bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Usage: # 1. Enable ROCKS_LOG_DETAILS in util/logging.h # 2. Run ./transaction_test --gtest_filter="MySQLStyleTransactionTest/MySQLStyleTransactionTest.TransactionStressTest/*" --gtest_break_on_failure diff --git a/tools/auto_sanity_test.sh b/tools/auto_sanity_test.sh index c98bd661c..4670ef9bb 100755 --- a/tools/auto_sanity_test.sh +++ b/tools/auto_sanity_test.sh @@ -1,4 +1,5 @@ # shellcheck disable=SC2148 +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. TMP_DIR="${TMPDIR:-/tmp}/rocksdb-sanity-test" if [ "$#" -lt 2 ]; then diff --git a/tools/benchmark.sh b/tools/benchmark.sh index 31df59cd7..e523f800b 100755 --- a/tools/benchmark.sh +++ b/tools/benchmark.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # REQUIRE: db_bench binary exists in the current directory if [ $# -ne 1 ]; then diff --git a/tools/benchmark_leveldb.sh b/tools/benchmark_leveldb.sh index 40c7733ce..069b53a9f 100755 --- a/tools/benchmark_leveldb.sh +++ b/tools/benchmark_leveldb.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # REQUIRE: db_bench binary exists in the current directory # # This should be used with the LevelDB fork listed here to use additional test options. diff --git a/tools/check_format_compatible.sh b/tools/check_format_compatible.sh index a849b9e7e..098f0d555 100755 --- a/tools/check_format_compatible.sh +++ b/tools/check_format_compatible.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # A shell script to load some pre generated data file to a DB using ldb tool # ./ldb needs to be avaible to be executed. diff --git a/tools/db_crashtest.py b/tools/db_crashtest.py index dbabb2b4f..a1a9ecb66 100644 --- a/tools/db_crashtest.py +++ b/tools/db_crashtest.py @@ -1,4 +1,5 @@ #! /usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os import sys import time diff --git a/tools/generate_random_db.sh b/tools/generate_random_db.sh index e10843bab..5b5962617 100755 --- a/tools/generate_random_db.sh +++ b/tools/generate_random_db.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # A shell script to load some pre generated data file to a DB using ldb tool # ./ldb needs to be avaible to be executed. diff --git a/tools/ingest_external_sst.sh b/tools/ingest_external_sst.sh index 54ca3db3b..8e2fed7ce 100755 --- a/tools/ingest_external_sst.sh +++ b/tools/ingest_external_sst.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # diff --git a/tools/ldb_test.py b/tools/ldb_test.py index 2200fb464..e64e76ee7 100644 --- a/tools/ldb_test.py +++ b/tools/ldb_test.py @@ -1,3 +1,4 @@ +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os import glob import os.path diff --git a/tools/rdb/db_wrapper.cc b/tools/rdb/db_wrapper.cc index 1ec9da1dc..c65eba407 100644 --- a/tools/rdb/db_wrapper.cc +++ b/tools/rdb/db_wrapper.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include #include #include diff --git a/tools/rdb/db_wrapper.h b/tools/rdb/db_wrapper.h index 9d1c8f886..da93e5b7c 100644 --- a/tools/rdb/db_wrapper.h +++ b/tools/rdb/db_wrapper.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #ifndef DBWRAPPER_H #define DBWRAPPER_H diff --git a/tools/rdb/rdb.cc b/tools/rdb/rdb.cc index 3619dc74e..119fcc410 100644 --- a/tools/rdb/rdb.cc +++ b/tools/rdb/rdb.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #ifndef BUILDING_NODE_EXTENSION #define BUILDING_NODE_EXTENSION #endif diff --git a/tools/rdb/unit_test.js b/tools/rdb/unit_test.js index d74ee8ce5..d01ae1df8 100644 --- a/tools/rdb/unit_test.js +++ b/tools/rdb/unit_test.js @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. assert = require('assert') RDB = require('./build/Release/rdb').DBWrapper exec = require('child_process').exec diff --git a/tools/regression_test.sh b/tools/regression_test.sh index 69a53a470..79963738f 100755 --- a/tools/regression_test.sh +++ b/tools/regression_test.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # The RocksDB regression test script. # REQUIREMENT: must be able to run make db_bench in the current directory # diff --git a/tools/report_lite_binary_size.sh b/tools/report_lite_binary_size.sh index 232bb9bc0..e3fe7bc26 100755 --- a/tools/report_lite_binary_size.sh +++ b/tools/report_lite_binary_size.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # Script to report lite build binary size for latest RocksDB commits. # Usage: # ./report_lite_binary_size [num_recent_commits] diff --git a/tools/rocksdb_dump_test.sh b/tools/rocksdb_dump_test.sh index 8d9c7f520..532c53267 100755 --- a/tools/rocksdb_dump_test.sh +++ b/tools/rocksdb_dump_test.sh @@ -1,4 +1,5 @@ # shellcheck disable=SC2148 +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. TESTDIR=`mktemp -d ${TMPDIR:-/tmp}/rocksdb-dump-test.XXXXX` DUMPFILE="tools/sample-dump.dmp" diff --git a/tools/run_flash_bench.sh b/tools/run_flash_bench.sh index 4d9d0d557..26e253843 100755 --- a/tools/run_flash_bench.sh +++ b/tools/run_flash_bench.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # REQUIRE: benchmark.sh exists in the current directory # After execution of this script, log files are generated in $output_dir. # report.txt provides a high level statistics diff --git a/tools/run_leveldb.sh b/tools/run_leveldb.sh index de628c310..2fce8b12d 100755 --- a/tools/run_leveldb.sh +++ b/tools/run_leveldb.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # REQUIRE: benchmark_leveldb.sh exists in the current directory # After execution of this script, log files are generated in $output_dir. # report.txt provides a high level statistics diff --git a/tools/verify_random_db.sh b/tools/verify_random_db.sh index 129233001..817e4b984 100755 --- a/tools/verify_random_db.sh +++ b/tools/verify_random_db.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # A shell script to verify DB generated by generate_random_db.sh cannot opened and read correct data. # ./ldb needs to be avaible to be executed. diff --git a/tools/write_external_sst.sh b/tools/write_external_sst.sh index 6efc30020..3b02d082f 100755 --- a/tools/write_external_sst.sh +++ b/tools/write_external_sst.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -# +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. # # diff --git a/tools/write_stress_runner.py b/tools/write_stress_runner.py index b84dfd3ca..9a0e920a7 100644 --- a/tools/write_stress_runner.py +++ b/tools/write_stress_runner.py @@ -1,4 +1,5 @@ #! /usr/bin/env python +# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import subprocess import argparse import random diff --git a/util/build_version.cc.in b/util/build_version.cc.in index d2e8c5780..856958018 100644 --- a/util/build_version.cc.in +++ b/util/build_version.cc.in @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include "build_version.h" const char* rocksdb_build_git_sha = "rocksdb_build_git_sha:@@GIT_SHA@@"; const char* rocksdb_build_git_date = "rocksdb_build_git_date:@@GIT_DATE_TIME@@"; diff --git a/util/crc32c_ppc.c b/util/crc32c_ppc.c index 3c517c88c..d9467d282 100644 --- a/util/crc32c_ppc.c +++ b/util/crc32c_ppc.c @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2017 International Business Machines Corp. // All rights reserved. // This source code is licensed under the BSD-style license found in the diff --git a/util/crc32c_ppc.h b/util/crc32c_ppc.h index 3bcaecfe8..64a81a431 100644 --- a/util/crc32c_ppc.h +++ b/util/crc32c_ppc.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2017 International Business Machines Corp. // All rights reserved. // This source code is licensed under the BSD-style license found in the diff --git a/util/crc32c_ppc_asm.S b/util/crc32c_ppc_asm.S index 6de797973..5142a8f25 100644 --- a/util/crc32c_ppc_asm.S +++ b/util/crc32c_ppc_asm.S @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2015 Anton Blanchard , IBM // Copyright (c) 2017 International Business Machines Corp. // All rights reserved. diff --git a/util/crc32c_ppc_constants.h b/util/crc32c_ppc_constants.h index 57d663032..21ec6fd94 100644 --- a/util/crc32c_ppc_constants.h +++ b/util/crc32c_ppc_constants.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (C) 2015, 2017 International Business Machines Corp. // All rights reserved. // This source code is licensed under the BSD-style license found in the diff --git a/util/ppc-opcode.h b/util/ppc-opcode.h index 554fa50a8..e632ef26a 100644 --- a/util/ppc-opcode.h +++ b/util/ppc-opcode.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2017 International Business Machines Corp. // All rights reserved. // This source code is licensed under the BSD-style license found in the diff --git a/util/vector_iterator.h b/util/vector_iterator.h index da60eb229..2a88c2603 100644 --- a/util/vector_iterator.h +++ b/util/vector_iterator.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #pragma once #include diff --git a/util/xxhash.cc b/util/xxhash.cc index 2ec95a636..91343f674 100644 --- a/util/xxhash.cc +++ b/util/xxhash.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. /* xxHash - Fast Hash algorithm Copyright (C) 2012-2014, Yann Collet. diff --git a/util/xxhash.h b/util/xxhash.h index 88352ac75..515375506 100644 --- a/util/xxhash.h +++ b/util/xxhash.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. /* xxHash - Fast Hash algorithm Header File diff --git a/utilities/env_librados.cc b/utilities/env_librados.cc index 753444da1..9c275c03f 100644 --- a/utilities/env_librados.cc +++ b/utilities/env_librados.cc @@ -1,6 +1,6 @@ // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab - +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. #include "rocksdb/utilities/env_librados.h" #include "util/random.h" #include @@ -1486,4 +1486,4 @@ EnvLibrados* EnvLibrados::Default() { return &default_env; } // @lint-ignore TXT4 T25377293 Grandfathered in -} \ No newline at end of file +} diff --git a/utilities/env_librados_test.cc b/utilities/env_librados_test.cc index fb10224e7..1a3746860 100644 --- a/utilities/env_librados_test.cc +++ b/utilities/env_librados_test.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2016, Red Hat, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/utilities/env_mirror.cc b/utilities/env_mirror.cc index 327d8e162..e3c1cf71f 100644 --- a/utilities/env_mirror.cc +++ b/utilities/env_mirror.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2015, Red Hat, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/utilities/env_mirror_test.cc b/utilities/env_mirror_test.cc index 812595ca1..3c0ed2285 100644 --- a/utilities/env_mirror_test.cc +++ b/utilities/env_mirror_test.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2015, Red Hat, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License diff --git a/utilities/merge_operators/string_append/stringappend2.h b/utilities/merge_operators/string_append/stringappend2.h index d979f1451..7379169b6 100644 --- a/utilities/merge_operators/string_append/stringappend2.h +++ b/utilities/merge_operators/string_append/stringappend2.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. /** * A TEST MergeOperator for rocksdb that implements string append. * It is built using the MergeOperator interface rather than the simpler diff --git a/utilities/ttl/db_ttl_impl.cc b/utilities/ttl/db_ttl_impl.cc index 7ec60b615..1952e6188 100644 --- a/utilities/ttl/db_ttl_impl.cc +++ b/utilities/ttl/db_ttl_impl.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/utilities/ttl/db_ttl_impl.h b/utilities/ttl/db_ttl_impl.h index 1148f4f90..8bf064a04 100644 --- a/utilities/ttl/db_ttl_impl.h +++ b/utilities/ttl/db_ttl_impl.h @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. diff --git a/utilities/ttl/ttl_test.cc b/utilities/ttl/ttl_test.cc index 6a50eb29f..88e90af26 100644 --- a/utilities/ttl/ttl_test.cc +++ b/utilities/ttl/ttl_test.cc @@ -1,3 +1,4 @@ +// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors.