diff --git a/buckifier/buckify_rocksdb.py b/buckifier/buckify_rocksdb.py index 96903af682..a5d71b65d4 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 baca6c2e40..77f8f23c56 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 3d5822d3cb..493cd8a8a8 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 f881588c59..730b5ebf9d 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 350b7335c3..2eda69f107 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 548b1e8cec..c5cbb3f0f5 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 868e0bbddf..c6e074b646 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 bd02165d8a..5c8f7e4f87 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 44e9e58f8e..004bccb536 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 02f6094428..c0caede4a3 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 c087f81611..ec733cdf1f 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 f46a580bde..4415f87da3 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 c40c10131a..80fbdf431b 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 67d156e4c9..1a1e420813 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 81221ed9a4..f8fbb64fba 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 0d86548e82..7b5c52cff2 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 0f8884dfda..74f75aa034 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 6980633287..bcf8907ccc 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 0f8198b484..883d4e2a5c 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 c633131de8..060614dd14 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 b060544dfd..9af8c60d1d 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 4e3b9f20de..dbc1a92964 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 6d87ae9086..2f40ed61ac 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 4c358610c4..fbdabd9683 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 39b8b1cfb0..e403ce5727 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 51e55f5839..57c7427e80 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 4468cebdd2..f3e8339783 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 3efae758a2..93764d945f 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 2daf682e76..97c49b5f51 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 ba76ec2090..2d5cda618f 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 d5ccf47e54..5be55cbede 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 6c584375cc..b154a60a00 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 06cdeef1e0..a3efe00a25 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 6d513fc791..4b6b66e04f 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 dd3e090168..6e98a48e59 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 3008fee1a9..0646b8b3cf 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 c532398f66..a9b5e0a927 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 48d1c28d92..74178adb5d 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 d894b14a2e..aedcb8af78 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 0a07fa8e2f..5dfc385e3b 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 e06a06f7e3..636ab9f45a 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 63015c39a9..4f843d87e4 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 627e1ae1f7..c696c3e135 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 13cc873c36..f6e63209c1 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 3a05befa44..8ae87f788b 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 d56c46c290..b943cd9963 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 fe1779b1cf..efc78b14e6 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 2c97991b5b..0051ea39f5 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 296527f53f..c299f62210 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 5fe3215b39..1715d69d09 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 7402471ff2..ec1b9ff3b3 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 3727f7c1f2..8ec63269f8 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 96d364cd1c..6e37e8cf20 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 7807e7c835..fe3c2dd05b 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 e31e199161..e2c1b97d89 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 978cad6ccf..ae525d4dc8 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 45605063b5..a39a329fb6 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 5fe98da67b..8c0b7e370e 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 b6bfc495bc..5d9ec58d77 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 378340248f..fb1e7a9485 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 bf005a3481..c019266483 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 e79569fb8b..9b1ea209a2 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 b215dd17ff..a9b54d52c0 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 f83cff3b7f..9ece0355b6 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 6fd1c7e667..8463e86248 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 862696763f..2bd3b1798c 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 b619258ecc..a85d7c16e8 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 11ffedf312..c4e4f25a03 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 83ac5d3d27..8908194719 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 a0d8d669d2..646e8b8f86 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 bbba3b9193..d5dcbc5f58 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 5534c8b372..9d606362e1 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 a6e59c142f..0dccec5524 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 990df482ed..dade156609 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 b0c6dcf07e..f33afdefc3 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 022886b729..14760f20a5 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 f40b81fecc..ed9d4c0f8d 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 8082606081..477b1fac55 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 c98bd661c9..4670ef9bb0 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 31df59cd7a..e523f800be 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 40c7733cea..069b53a9fb 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 a849b9e7e2..098f0d555a 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 dbabb2b4f8..a1a9ecb66e 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 e10843bab8..5b59626171 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 54ca3db3b3..8e2fed7ce7 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 2200fb464b..e64e76ee73 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 1ec9da1dcd..c65eba4071 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 9d1c8f886c..da93e5b7c9 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 3619dc74ec..119fcc410c 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 d74ee8ce58..d01ae1df86 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 69a53a470a..79963738f6 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 232bb9bc05..e3fe7bc26d 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 8d9c7f5208..532c532678 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 4d9d0d5575..26e253843c 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 de628c310c..2fce8b12db 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 129233001c..817e4b9844 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 6efc300202..3b02d082f0 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 b84dfd3cad..9a0e920a72 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 d2e8c57808..8569580188 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 3c517c88ca..d9467d2826 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 3bcaecfe82..64a81a4310 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 6de7979733..5142a8f259 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 57d6630322..21ec6fd945 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 554fa50a89..e632ef26a3 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 da60eb229c..2a88c26031 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 2ec95a636e..91343f674e 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 88352ac75f..515375506e 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 753444da16..9c275c03f7 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 fb10224e7d..1a3746860b 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 327d8e1622..e3c1cf71f5 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 812595ca1e..3c0ed22852 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 d979f1451b..7379169b6c 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 7ec60b6150..1952e6188d 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 1148f4f90a..8bf064a046 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 6a50eb29fe..88e90af269 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.