Skip to content

Commit 3ff1bfb

Browse files
committed
Add license and comment.
1 parent 7af0076 commit 3ff1bfb

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

backup.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2017 Dgraph Labs, Inc. and Contributors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package badger
218

319
import (

transaction.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
)
3232

3333
type oracle struct {
34+
// curRead must be at the top for memory alignment. See issue #311.
3435
curRead uint64 // Managed by the mutex.
3536
refCount int64
3637
isManaged bool // Does not change value, so no locking required.

0 commit comments

Comments
 (0)