Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
4d014d6d
Commit
4d014d6d
authored
Jul 19, 2016
by
Felix Lange
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Godeps: bump github.com/syndtr/goleveldb/... to ab8b5dcf104
parent
a4c4125b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
63 additions
and
28 deletions
+63
-28
Godeps.json
Godeps/Godeps.json
+12
-12
batch.go
...orkspace/src/github.com/syndtr/goleveldb/leveldb/batch.go
+1
-0
db_compaction.go
.../src/github.com/syndtr/goleveldb/leveldb/db_compaction.go
+2
-2
file_storage_nacl.go
...com/syndtr/goleveldb/leveldb/storage/file_storage_nacl.go
+34
-0
hash.go
...pace/src/github.com/syndtr/goleveldb/leveldb/util/hash.go
+14
-14
No files found.
Godeps/Godeps.json
View file @
4d014d6d
...
...
@@ -152,51 +152,51 @@
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/cache"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/comparer"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/errors"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/filter"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/iterator"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/journal"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/memdb"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/opt"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/storage"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/table"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"github.com/syndtr/goleveldb/leveldb/util"
,
"Rev"
:
"
917f41c560270110ceb73c5b38be2a9127387071
"
"Rev"
:
"
ab8b5dcf1042e818ab68e770d465112a899b668e
"
},
{
"ImportPath"
:
"golang.org/x/crypto/pbkdf2"
,
...
...
Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/batch.go
View file @
4d014d6d
...
...
@@ -158,6 +158,7 @@ func (b *Batch) append(p *Batch) {
b
.
grow
(
len
(
p
.
data
)
-
batchHdrLen
)
b
.
data
=
append
(
b
.
data
,
p
.
data
[
batchHdrLen
:
]
...
)
b
.
rLen
+=
p
.
rLen
b
.
bLen
+=
p
.
bLen
}
if
p
.
sync
{
b
.
sync
=
true
...
...
Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/db_compaction.go
View file @
4d014d6d
...
...
@@ -172,7 +172,7 @@ func (db *DB) compactionTransact(name string, t compactionTransactInterface) {
disableBackoff
=
db
.
s
.
o
.
GetDisableCompactionBackoff
()
)
for
n
:=
0
;
;
n
++
{
// Check wether the DB is closed.
// Check w
h
ether the DB is closed.
if
db
.
isClosed
()
{
db
.
logf
(
"%s exiting"
,
name
)
db
.
compactionExitTransact
()
...
...
@@ -688,7 +688,7 @@ func (db *DB) compTrigger(compC chan<- cCmd) {
}
}
// This will trigger auto compation and/or wait for all compaction to be done.
// This will trigger auto compa
c
tion and/or wait for all compaction to be done.
func
(
db
*
DB
)
compTriggerWait
(
compC
chan
<-
cCmd
)
(
err
error
)
{
ch
:=
make
(
chan
error
)
defer
close
(
ch
)
...
...
Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/storage/file_storage_nacl.go
0 → 100644
View file @
4d014d6d
// Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// +build nacl
package
storage
import
(
"os"
"syscall"
)
func
newFileLock
(
path
string
,
readOnly
bool
)
(
fl
fileLock
,
err
error
)
{
return
nil
,
syscall
.
ENOTSUP
}
func
setFileLock
(
f
*
os
.
File
,
readOnly
,
lock
bool
)
error
{
return
syscall
.
ENOTSUP
}
func
rename
(
oldpath
,
newpath
string
)
error
{
return
syscall
.
ENOTSUP
}
func
isErrInvalid
(
err
error
)
bool
{
return
false
}
func
syncDir
(
name
string
)
error
{
return
syscall
.
ENOTSUP
}
Godeps/_workspace/src/github.com/syndtr/goleveldb/leveldb/util/hash.go
View file @
4d014d6d
...
...
@@ -7,38 +7,38 @@
package
util
import
(
"bytes"
"encoding/binary"
)
// Hash return hash of the given data.
func
Hash
(
data
[]
byte
,
seed
uint32
)
uint32
{
// Similar to murmur hash
var
m
uint32
=
0xc6a4a793
var
r
uint32
=
24
h
:=
seed
^
(
uint32
(
len
(
data
))
*
m
)
const
(
m
=
uint32
(
0xc6a4a793
)
r
=
uint32
(
24
)
)
var
(
h
=
seed
^
(
uint32
(
len
(
data
))
*
m
)
i
int
)
buf
:=
bytes
.
NewBuffer
(
data
)
for
buf
.
Len
()
>=
4
{
var
w
uint32
binary
.
Read
(
buf
,
binary
.
LittleEndian
,
&
w
)
h
+=
w
for
n
:=
len
(
data
)
-
len
(
data
)
%
4
;
i
<
n
;
i
+=
4
{
h
+=
binary
.
LittleEndian
.
Uint32
(
data
[
i
:
])
h
*=
m
h
^=
(
h
>>
16
)
}
rest
:=
buf
.
Bytes
()
switch
len
(
rest
)
{
switch
len
(
data
)
-
i
{
default
:
panic
(
"not reached"
)
case
3
:
h
+=
uint32
(
rest
[
2
])
<<
16
h
+=
uint32
(
data
[
i
+
2
])
<<
16
fallthrough
case
2
:
h
+=
uint32
(
rest
[
1
])
<<
8
h
+=
uint32
(
data
[
i
+
1
])
<<
8
fallthrough
case
1
:
h
+=
uint32
(
rest
[
0
])
h
+=
uint32
(
data
[
i
])
h
*=
m
h
^=
(
h
>>
r
)
case
0
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment