diff --git a/LICENSE.txt b/LICENSE.txt index f32aad56f59d1f..c27528916dc00c 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -359,6 +359,38 @@ Parts of be/src/runtime/string_search.hpp: Python Software License V2 -------------------------------------------------------------------------------- +be/src/util/coding.*: 3-clause BSD + +Copyright (c) 2011 The LevelDB Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------------------- + be/src/olap/lru_cache.h : BSD-style license Copyright (c) 2011 The LevelDB Authors. All rights reserved. diff --git a/be/src/util/coding.cpp b/be/src/util/coding.cpp index 4d7456736710b7..911c871c5ca789 100644 --- a/be/src/util/coding.cpp +++ b/be/src/util/coding.cpp @@ -14,6 +14,15 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// +// Copyright (c) 2011-present, Facebook, 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 +// (found in the LICENSE.Apache file in the root directory). +// +// 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. #include "util/coding.h" diff --git a/be/src/util/coding.h b/be/src/util/coding.h index b070b387b48b63..6db248f3d9d2b8 100644 --- a/be/src/util/coding.h +++ b/be/src/util/coding.h @@ -14,6 +14,15 @@ // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. +// +// Copyright (c) 2011-present, Facebook, 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 +// (found in the LICENSE.Apache file in the root directory). +// +// 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. #pragma once diff --git a/run-ut.sh b/run-ut.sh index 69c7dc20d95184..ccf68660392c27 100755 --- a/run-ut.sh +++ b/run-ut.sh @@ -150,6 +150,7 @@ ${DORIS_TEST_BINARY_DIR}/util/byte_buffer_test2 ${DORIS_TEST_BINARY_DIR}/util/uid_util_test ${DORIS_TEST_BINARY_DIR}/util/aes_util_test ${DORIS_TEST_BINARY_DIR}/util/string_util_test +${DORIS_TEST_BINARY_DIR}/util/coding_test ## Running common Unittest ${DORIS_TEST_BINARY_DIR}/common/resource_tls_test