mirror of
https://github.com/chrislusf/seaweedfs
synced 2024-07-06 09:07:08 +02:00
fix log error
This commit is contained in:
parent
49f4216280
commit
233a9a9b6c
|
@ -57,7 +57,7 @@ func (s *SuperBlock) Bytes() []byte {
|
||||||
extraSize := len(extraData)
|
extraSize := len(extraData)
|
||||||
if extraSize > 256*256-2 {
|
if extraSize > 256*256-2 {
|
||||||
// reserve a couple of bits for future extension
|
// reserve a couple of bits for future extension
|
||||||
glog.Fatalf("super block extra size is %d bigger than %d: %v", extraSize, 256*256-2)
|
glog.Fatalf("super block extra size is %d bigger than %d", extraSize, 256*256-2)
|
||||||
}
|
}
|
||||||
s.extraSize = uint16(extraSize)
|
s.extraSize = uint16(extraSize)
|
||||||
util.Uint16toBytes(header[6:8], s.extraSize)
|
util.Uint16toBytes(header[6:8], s.extraSize)
|
||||||
|
|
Loading…
Reference in a new issue