Skip to content

Commit d616ebe

Browse files
siyingfacebook-github-bot
authored andcommitted
Add GPLv2 as an alternative license.
Summary: Closes facebook#2226 Differential Revision: D4967547 Pulled By: siying fbshipit-source-id: dd3b58ae1e7a106ab6bb6f37ab5c88575b125ab4
1 parent 4439b45 commit d616ebe

File tree

494 files changed

+1325
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

494 files changed

+1325
-0
lines changed

COPYING

+339
Large diffs are not rendered by default.

cache/cache_bench.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#ifndef __STDC_FORMAT_MACROS
79
#define __STDC_FORMAT_MACROS

cache/cache_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

cache/clock_cache.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

cache/lru_cache.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

cache/lru_cache.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

cache/lru_cache_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#include "cache/lru_cache.h"
79

cache/sharded_cache.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

cache/sharded_cache.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/builder.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/builder.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
68
// Use of this source code is governed by a BSD-style license that can be
79
// found in the LICENSE file. See the AUTHORS file for names of contributors.

db/c.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/column_family.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/column_family.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compact_files_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#ifndef ROCKSDB_LITE
79

db/compacted_db_impl.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#ifndef ROCKSDB_LITE
79
#include "db/compacted_db_impl.h"

db/compacted_db_impl.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#pragma once
79
#ifndef ROCKSDB_LITE

db/compaction.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_iteration_stats.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#pragma once
79

db/compaction_iterator.cc

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// This source code is licensed under the BSD-style license found in the
55
// LICENSE file in the root directory of this source tree. An additional grant
66
// of patent rights can be found in the PATENTS file in the same directory.
7+
// This source code is also licensed under the GPLv2 license found in the
8+
// COPYING file in the root directory of this source tree.
79

810
#include "db/compaction_iterator.h"
911
#include "rocksdb/listener.h"

db/compaction_iterator.h

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// This source code is licensed under the BSD-style license found in the
55
// LICENSE file in the root directory of this source tree. An additional grant
66
// of patent rights can be found in the PATENTS file in the same directory.
7+
// This source code is also licensed under the GPLv2 license found in the
8+
// COPYING file in the root directory of this source tree.
79
#pragma once
810

911
#include <algorithm>

db/compaction_iterator_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#include "db/compaction_iterator.h"
79

db/compaction_job.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_job.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_job_stats_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_job_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#ifndef ROCKSDB_LITE
79

db/compaction_picker.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_picker.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_picker_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#include "db/compaction_picker.h"
79
#include <limits>

db/compaction_picker_universal.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/compaction_picker_universal.h

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/comparator_db_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
// This source code is licensed under the BSD-style license found in the
55
// LICENSE file in the root directory of this source tree. An additional grant
66
// of patent rights can be found in the PATENTS file in the same directory.
7+
// This source code is also licensed under the GPLv2 license found in the
8+
// COPYING file in the root directory of this source tree.
79
#include <map>
810
#include <string>
911

db/convenience.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2012 Facebook.
79
// Use of this source code is governed by a BSD-style license that can be

db/corruption_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/cuckoo_table_db_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57

68
#ifndef ROCKSDB_LITE
79

db/db_basic_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/db_block_cache_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/db_bloom_filter_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/db_compaction_filter_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/db_compaction_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

db/db_dynamic_level_test.cc

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// This source code is licensed under the BSD-style license found in the
33
// LICENSE file in the root directory of this source tree. An additional grant
44
// of patent rights can be found in the PATENTS file in the same directory.
5+
// This source code is also licensed under the GPLv2 license found in the
6+
// COPYING file in the root directory of this source tree.
57
//
68
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
79
// Use of this source code is governed by a BSD-style license that can be

0 commit comments

Comments
 (0)