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
main
Fosco Marotto 6 years ago committed by Facebook Github Bot
parent 392f6d49e5
commit 6c2bf9e916
  1. 1
      buckifier/buckify_rocksdb.py
  2. 1
      buckifier/rocks_test_runner.sh
  3. 1
      buckifier/targets_builder.py
  4. 1
      buckifier/targets_cfg.py
  5. 1
      buckifier/util.py
  6. 1
      build_tools/amalgamate.py
  7. 1
      build_tools/dependencies.sh
  8. 1
      build_tools/dependencies_4.8.1.sh
  9. 1
      build_tools/dependencies_platform007.sh
  10. 1
      build_tools/dockerbuild.sh
  11. 2
      build_tools/fb_compile_mongo.sh
  12. 1
      build_tools/fbcode_config.sh
  13. 1
      build_tools/fbcode_config4.8.1.sh
  14. 1
      build_tools/fbcode_config_platform007.sh
  15. 1
      build_tools/format-diff.sh
  16. 1
      build_tools/make_package.sh
  17. 1
      build_tools/precommit_checker.py
  18. 1
      build_tools/regression_build_test.sh
  19. 1
      build_tools/run_ci_db_test.ps1
  20. 1
      build_tools/setup_centos7.sh
  21. 1
      build_tools/update_dependencies.sh
  22. 1
      build_tools/version.sh
  23. 1
      coverage/coverage_test.sh
  24. 1
      coverage/parse_gcov_output.py
  25. 1
      db/c_test.c
  26. 2
      db/internal_stats.cc
  27. 2
      defs.bzl
  28. 2
      env/env_basic_test.cc
  29. 2
      env/mock_env_test.cc
  30. 1
      hdfs/setup.sh
  31. 2
      include/rocksdb/listener.h
  32. 1
      include/rocksdb/table.h
  33. 1
      include/rocksdb/table_properties.h
  34. 1
      include/rocksdb/utilities/env_mirror.h
  35. 1
      include/rocksdb/utilities/stackable_db.h
  36. 1
      include/rocksdb/utilities/utility_db.h
  37. 1
      java/crossbuild/build-linux-centos.sh
  38. 1
      java/crossbuild/build-linux.sh
  39. 1
      java/crossbuild/docker-build-linux-centos.sh
  40. 1
      java/jdb_bench.sh
  41. 1
      java/rocksjni/merge_operator.cc
  42. 1
      java/src/main/java/org/rocksdb/AbstractMutableOptions.java
  43. 1
      java/src/main/java/org/rocksdb/AbstractTableFilter.java
  44. 1
      java/src/main/java/org/rocksdb/CompactionStopStyle.java
  45. 1
      java/src/main/java/org/rocksdb/ComparatorOptions.java
  46. 1
      java/src/main/java/org/rocksdb/HashLinkedListMemTableConfig.java
  47. 1
      java/src/main/java/org/rocksdb/HashSkipListMemTableConfig.java
  48. 1
      java/src/main/java/org/rocksdb/InfoLogLevel.java
  49. 1
      java/src/main/java/org/rocksdb/MergeOperator.java
  50. 1
      java/src/main/java/org/rocksdb/MutableDBOptionsInterface.java
  51. 1
      java/src/main/java/org/rocksdb/MutableOptionKey.java
  52. 1
      java/src/main/java/org/rocksdb/MutableOptionValue.java
  53. 1
      java/src/main/java/org/rocksdb/NativeLibraryLoader.java
  54. 1
      java/src/main/java/org/rocksdb/SizeApproximationFlag.java
  55. 1
      java/src/main/java/org/rocksdb/SkipListMemTableConfig.java
  56. 1
      java/src/main/java/org/rocksdb/StringAppendOperator.java
  57. 1
      java/src/main/java/org/rocksdb/TableFilter.java
  58. 1
      java/src/main/java/org/rocksdb/TableProperties.java
  59. 1
      java/src/main/java/org/rocksdb/TransactionLogIterator.java
  60. 1
      java/src/main/java/org/rocksdb/VectorMemTableConfig.java
  61. 1
      java/src/main/java/org/rocksdb/util/Environment.java
  62. 1
      java/src/test/java/org/rocksdb/CheckPointTest.java
  63. 1
      java/src/test/java/org/rocksdb/InfoLogLevelTest.java
  64. 1
      java/src/test/java/org/rocksdb/LoggerTest.java
  65. 1
      java/src/test/java/org/rocksdb/RocksMemoryResource.java
  66. 1
      java/src/test/java/org/rocksdb/TableFilterTest.java
  67. 1
      java/src/test/java/org/rocksdb/TransactionLogIteratorTest.java
  68. 1
      java/src/test/java/org/rocksdb/test/RemoveEmptyValueCompactionFilterFactory.java
  69. 1
      java/src/test/java/org/rocksdb/util/CapturingWriteBatchHandler.java
  70. 1
      java/src/test/java/org/rocksdb/util/WriteBatchGetter.java
  71. 1
      table/adaptive_table_factory.cc
  72. 1
      table/adaptive_table_factory.h
  73. 1
      table/plain_table_factory.cc
  74. 1
      table/plain_table_factory.h
  75. 1
      table/plain_table_reader.cc
  76. 1
      table/plain_table_reader.h
  77. 1
      thirdparty.inc
  78. 1
      tools/analyze_txn_stress_test.sh
  79. 1
      tools/auto_sanity_test.sh
  80. 1
      tools/benchmark.sh
  81. 1
      tools/benchmark_leveldb.sh
  82. 1
      tools/check_format_compatible.sh
  83. 1
      tools/db_crashtest.py
  84. 1
      tools/generate_random_db.sh
  85. 1
      tools/ingest_external_sst.sh
  86. 1
      tools/ldb_test.py
  87. 1
      tools/rdb/db_wrapper.cc
  88. 1
      tools/rdb/db_wrapper.h
  89. 1
      tools/rdb/rdb.cc
  90. 1
      tools/rdb/unit_test.js
  91. 1
      tools/regression_test.sh
  92. 1
      tools/report_lite_binary_size.sh
  93. 1
      tools/rocksdb_dump_test.sh
  94. 1
      tools/run_flash_bench.sh
  95. 1
      tools/run_leveldb.sh
  96. 1
      tools/verify_random_db.sh
  97. 2
      tools/write_external_sst.sh
  98. 1
      tools/write_stress_runner.py
  99. 1
      util/build_version.cc.in
  100. 1
      util/crc32c_ppc.c
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# Create a tmp directory for the test to use # Create a tmp directory for the test to use
TEST_DIR=$(mktemp -d /dev/shm/fbcode_rocksdb_XXXXXXX) TEST_DIR=$(mktemp -d /dev/shm/fbcode_rocksdb_XXXXXXX)
# shellcheck disable=SC2068 # shellcheck disable=SC2068

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division
from __future__ import print_function from __future__ import print_function

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
""" """
This module keeps commonly used components. This module keeps commonly used components.
""" """

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# amalgamate.py creates an amalgamation from a unity build. # amalgamate.py creates an amalgamation from a unity build.
# It can be run with either Python 2 or 3. # It can be run with either Python 2 or 3.

@ -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 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 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 LIBGCC_BASE=/mnt/gvfs/third-party2/libgcc/92b0c8e5c8eecc71eb042594ce1ab3413799b385/5.x/gcc-5-glibc-2.23/339d858

@ -1,4 +1,5 @@
# shellcheck disable=SC2148 # 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 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 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 LIBGCC_BASE=/mnt/gvfs/third-party2/libgcc/d6e0a7da6faba45f5e5b1638f9edd7afc2f34e7d/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc

@ -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 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 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 LIBGCC_BASE=/mnt/gvfs/third-party2/libgcc/c67031f0f739ac61575a061518d6ef5038f99f90/7.x/platform007/5620abc

@ -1,2 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
docker run -v $PWD:/rocks -w /rocks buildpack-deps make docker run -v $PWD:/rocks -w /rocks buildpack-deps make

@ -1,5 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# fail early # fail early
set -e set -e

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# #
# Set environment variables so that we can compile rocksdb using # Set environment variables so that we can compile rocksdb using
# fbcode settings. It uses the latest g++ and clang compilers and also # fbcode settings. It uses the latest g++ and clang compilers and also

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# #
# Set environment variables so that we can compile rocksdb using # Set environment variables so that we can compile rocksdb using
# fbcode settings. It uses the latest g++ compiler and also # fbcode settings. It uses the latest g++ compiler and also

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# #
# Set environment variables so that we can compile rocksdb using # Set environment variables so that we can compile rocksdb using
# fbcode settings. It uses the latest g++ and clang compilers and also # fbcode settings. It uses the latest g++ and clang compilers and also

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/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 # If clang_format_diff.py command is not specfied, we assume we are able to
# access directly without any path. # access directly without any path.
if [ -z $CLANG_FORMAT_DIFF ] if [ -z $CLANG_FORMAT_DIFF ]

@ -1,5 +1,6 @@
# shellcheck disable=SC1113 # shellcheck disable=SC1113
#/usr/bin/env bash #/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
set -e set -e

@ -1,4 +1,5 @@
#!/usr/local/fbcode/gcc-4.9-glibc-2.20-fb/bin/python2.7 #!/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 absolute_import
from __future__ import division from __future__ import division

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
set -e set -e

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# This script enables you running RocksDB tests by running # This script enables you running RocksDB tests by running
# All the tests concurrently and utilizing all the cores # All the tests concurrently and utilizing all the cores
Param( Param(

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
set -e set -e
ROCKSDB_VERSION="5.10.3" ROCKSDB_VERSION="5.10.3"

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# #
# Update dependencies.sh file with the latest avaliable versions # Update dependencies.sh file with the latest avaliable versions

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
if [ "$#" = "0" ]; then if [ "$#" = "0" ]; then
echo "Usage: $0 major|minor|patch|full" echo "Usage: $0 major|minor|patch|full"
exit 1 exit 1

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# Exit on error. # Exit on error.
set -e set -e

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import re import re
import sys import sys

@ -1,6 +1,7 @@
/* Copyright (c) 2011 The LevelDB Authors. 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 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. */ found in the LICENSE file. See the AUTHORS file for names of contributors. */
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <stdio.h> #include <stdio.h>

@ -2,6 +2,8 @@
// COPYING file in the root directory) and Apache 2.0 License // COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory). // (found in the LICENSE.Apache file in the root directory).
// //
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
//
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -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:cpp_binary.bzl", "cpp_binary")
load("@fbcode_macros//build_defs:custom_unittest.bzl", "custom_unittest") load("@fbcode_macros//build_defs:custom_unittest.bzl", "custom_unittest")

@ -1,6 +1,8 @@
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.
//
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <memory> #include <memory>
#include <string> #include <string>

@ -1,6 +1,8 @@
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // 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" #include "env/mock_env.h"

@ -1,4 +1,5 @@
# shellcheck disable=SC2148 # shellcheck disable=SC2148
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
export USE_HDFS=1 export USE_HDFS=1
export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64:$HADOOP_HOME/lib/native export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:$JAVA_HOME/jre/lib/amd64:$HADOOP_HOME/lib/native

@ -1,6 +1,8 @@
// Copyright (c) 2014 The LevelDB Authors. All rights reserved. // Copyright (c) 2014 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // 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. // 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 #pragma once

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,6 +1,7 @@
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // 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 #pragma once
#include <stdint.h> #include <stdint.h>

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2015, Red Hat, Inc. All rights reserved. // Copyright (c) 2015, Red Hat, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the // This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License // COPYING file in the root directory) and Apache 2.0 License

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
set -e set -e

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# install all required packages for rocksdb # install all required packages for rocksdb
sudo apt-get update sudo apt-get update
sudo apt-get -y install git make gcc g++ libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev default-jdk sudo apt-get -y install git make gcc g++ libgflags-dev libsnappy-dev zlib1g-dev libbz2-dev default-jdk

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
set -e set -e
#set -x #set -x

@ -1,4 +1,5 @@
# shellcheck disable=SC2148 # shellcheck disable=SC2148
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
PLATFORM=64 PLATFORM=64
if [ `getconf LONG_BIT` != "64" ] if [ `getconf LONG_BIT` != "64" ]
then then

@ -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. // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved.
// This source code is licensed under both the GPLv2 (found in the // This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License // COPYING file in the root directory) and Apache 2.0 License

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import java.util.*; import java.util.*;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -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. // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved.
// This source code is licensed under both the GPLv2 (found in the // This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License // COPYING file in the root directory) and Apache 2.0 License

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
public interface MutableDBOptionsInterface<T extends MutableDBOptionsInterface> { public interface MutableDBOptionsInterface<T extends MutableDBOptionsInterface> {

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
public interface MutableOptionKey { public interface MutableOptionKey {

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import static org.rocksdb.AbstractMutableOptions.INT_ARRAY_INT_SEPARATOR; import static org.rocksdb.AbstractMutableOptions.INT_ARRAY_INT_SEPARATOR;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import java.io.*; import java.io.*;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import java.util.List; import java.util.List;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -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. // Copyright (c) 2014, Vlad Balan (vlad.gm@gmail.com). All rights reserved.
// This source code is licensed under both the GPLv2 (found in the // This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License // COPYING file in the root directory) and Apache 2.0 License

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import java.util.Map; import java.util.Map;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
/** /**

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb.util; package org.rocksdb.util;
public class Environment { public class Environment {

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import org.junit.ClassRule; import org.junit.ClassRule;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import org.junit.ClassRule; import org.junit.ClassRule;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import org.junit.rules.ExternalResource; import org.junit.rules.ExternalResource;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import org.junit.Rule; import org.junit.Rule;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb; package org.rocksdb;
import org.junit.ClassRule; import org.junit.ClassRule;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb.test; package org.rocksdb.test;
import org.rocksdb.AbstractCompactionFilter; import org.rocksdb.AbstractCompactionFilter;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb.util; package org.rocksdb.util;
import org.rocksdb.RocksDBException; import org.rocksdb.RocksDBException;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
package org.rocksdb.util; package org.rocksdb.util;
import org.rocksdb.RocksDBException; import org.rocksdb.RocksDBException;

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2011 The LevelDB Authors. 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 // 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. // found in the LICENSE file. See the AUTHORS file for names of contributors.

@ -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 # 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 # TODO: Make this work with find_package and/or get rid of it

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# Usage: # Usage:
# 1. Enable ROCKS_LOG_DETAILS in util/logging.h # 1. Enable ROCKS_LOG_DETAILS in util/logging.h
# 2. Run ./transaction_test --gtest_filter="MySQLStyleTransactionTest/MySQLStyleTransactionTest.TransactionStressTest/*" --gtest_break_on_failure # 2. Run ./transaction_test --gtest_filter="MySQLStyleTransactionTest/MySQLStyleTransactionTest.TransactionStressTest/*" --gtest_break_on_failure

@ -1,4 +1,5 @@
# shellcheck disable=SC2148 # shellcheck disable=SC2148
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
TMP_DIR="${TMPDIR:-/tmp}/rocksdb-sanity-test" TMP_DIR="${TMPDIR:-/tmp}/rocksdb-sanity-test"
if [ "$#" -lt 2 ]; then if [ "$#" -lt 2 ]; then

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# REQUIRE: db_bench binary exists in the current directory # REQUIRE: db_bench binary exists in the current directory
if [ $# -ne 1 ]; then if [ $# -ne 1 ]; then

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# REQUIRE: db_bench binary exists in the current directory # REQUIRE: db_bench binary exists in the current directory
# #
# This should be used with the LevelDB fork listed here to use additional test options. # This should be used with the LevelDB fork listed here to use additional test options.

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/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 # A shell script to load some pre generated data file to a DB using ldb tool
# ./ldb needs to be avaible to be executed. # ./ldb needs to be avaible to be executed.

@ -1,4 +1,5 @@
#! /usr/bin/env python #! /usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os import os
import sys import sys
import time import time

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/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 # A shell script to load some pre generated data file to a DB using ldb tool
# ./ldb needs to be avaible to be executed. # ./ldb needs to be avaible to be executed.

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# #
# #

@ -1,3 +1,4 @@
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import os import os
import glob import glob
import os.path import os.path

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include <iostream> #include <iostream>
#include <memory> #include <memory>
#include <vector> #include <vector>

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#ifndef DBWRAPPER_H #ifndef DBWRAPPER_H
#define DBWRAPPER_H #define DBWRAPPER_H

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#ifndef BUILDING_NODE_EXTENSION #ifndef BUILDING_NODE_EXTENSION
#define BUILDING_NODE_EXTENSION #define BUILDING_NODE_EXTENSION
#endif #endif

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
assert = require('assert') assert = require('assert')
RDB = require('./build/Release/rdb').DBWrapper RDB = require('./build/Release/rdb').DBWrapper
exec = require('child_process').exec exec = require('child_process').exec

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# The RocksDB regression test script. # The RocksDB regression test script.
# REQUIREMENT: must be able to run make db_bench in the current directory # REQUIREMENT: must be able to run make db_bench in the current directory
# #

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/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. # Script to report lite build binary size for latest RocksDB commits.
# Usage: # Usage:
# ./report_lite_binary_size [num_recent_commits] # ./report_lite_binary_size [num_recent_commits]

@ -1,4 +1,5 @@
# shellcheck disable=SC2148 # shellcheck disable=SC2148
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
TESTDIR=`mktemp -d ${TMPDIR:-/tmp}/rocksdb-dump-test.XXXXX` TESTDIR=`mktemp -d ${TMPDIR:-/tmp}/rocksdb-dump-test.XXXXX`
DUMPFILE="tools/sample-dump.dmp" DUMPFILE="tools/sample-dump.dmp"

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# REQUIRE: benchmark.sh exists in the current directory # REQUIRE: benchmark.sh exists in the current directory
# After execution of this script, log files are generated in $output_dir. # After execution of this script, log files are generated in $output_dir.
# report.txt provides a high level statistics # report.txt provides a high level statistics

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# REQUIRE: benchmark_leveldb.sh exists in the current directory # REQUIRE: benchmark_leveldb.sh exists in the current directory
# After execution of this script, log files are generated in $output_dir. # After execution of this script, log files are generated in $output_dir.
# report.txt provides a high level statistics # report.txt provides a high level statistics

@ -1,4 +1,5 @@
#!/usr/bin/env bash #!/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. # 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. # ./ldb needs to be avaible to be executed.

@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
# #
# #

@ -1,4 +1,5 @@
#! /usr/bin/env python #! /usr/bin/env python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import subprocess import subprocess
import argparse import argparse
import random import random

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#include "build_version.h" #include "build_version.h"
const char* rocksdb_build_git_sha = "rocksdb_build_git_sha:@@GIT_SHA@@"; 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@@"; const char* rocksdb_build_git_date = "rocksdb_build_git_date:@@GIT_DATE_TIME@@";

@ -1,3 +1,4 @@
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
// Copyright (c) 2017 International Business Machines Corp. // Copyright (c) 2017 International Business Machines Corp.
// All rights reserved. // All rights reserved.
// This source code is licensed under the BSD-style license found in the // This source code is licensed under the BSD-style license found in the

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save