Skip to content

Commit

Permalink
Add missing copyright notices
Browse files Browse the repository at this point in the history
  • Loading branch information
petermattis committed Aug 12, 2018
1 parent 4a58467 commit 62a7f03
Show file tree
Hide file tree
Showing 37 changed files with 164 additions and 1 deletion.
21 changes: 21 additions & 0 deletions cache/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2018 Damian Gryski

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
5 changes: 4 additions & 1 deletion cache/clockpro.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Copyright 2018. All rights reserved. Use of this source code is governed by
// an MIT-style license that can be found in the LICENSE file.

// Package cache implements the CLOCK-Pro caching algorithm.
/*
CLOCK-Pro is a patent-free alternative to the Adaptive Replacement Cache,
https://en.wikipedia.org/wiki/Adaptive_replacement_cache .
https://en.wikipedia.org/wiki/Adaptive_replacement_cache.
It is an approximation of LIRS ( https://en.wikipedia.org/wiki/LIRS_caching_algorithm ),
much like the CLOCK page replacement algorithm is an approximation of LRU.
Expand Down
3 changes: 3 additions & 0 deletions cache/clockpro_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2018. All rights reserved. Use of this source code is governed by
// an MIT-style license that can be found in the LICENSE file.

package cache

import (
Expand Down
4 changes: 4 additions & 0 deletions cmd/pebble/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions cmd/pebble/scan.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions cmd/pebble/sync.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions cmd/pebble/test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package main

import (
Expand Down
4 changes: 4 additions & 0 deletions cmd/pebble/util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package main

func encodeUint32Ascending(b []byte, v uint32) []byte {
Expand Down
4 changes: 4 additions & 0 deletions commit.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions commit_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions controller.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions controller_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions db/options_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package db

import (
Expand Down
4 changes: 4 additions & 0 deletions db_iter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions db_iter_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions error_iter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import "github.com/petermattis/pebble/db"
Expand Down
4 changes: 4 additions & 0 deletions level_iter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions level_iter_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions merging_iter.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions merging_iter_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/block.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/block_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/column.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/column_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/reader.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/table.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

// The ptable file format is similar to the sstable format except that data
Expand Down
4 changes: 4 additions & 0 deletions ptable/table_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions ptable/writer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package ptable

import (
Expand Down
4 changes: 4 additions & 0 deletions rate_limited_file.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package pebble

import (
Expand Down
4 changes: 4 additions & 0 deletions record/log_writer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package record

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/block.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/block_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/properties.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/properties_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/raw_block.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/reader_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import (
Expand Down
4 changes: 4 additions & 0 deletions sstable/unsafe.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright 2018 The LevelDB-Go and Pebble Authors. All rights reserved. Use
// of this source code is governed by a BSD-style license that can be found in
// the LICENSE file.

package sstable

import "unsafe"
Expand Down

0 comments on commit 62a7f03

Please sign in to comment.