mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-12-19 19:53:32 +08:00
add leveldb store
1. switch to viper for filer store configuration 2. simplify FindEntry() return values, removing “found” 3. add leveldb store
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func (entry Entry) EncodeAttributesAndChunks() ([]byte, error) {
|
||||
func (entry *Entry) EncodeAttributesAndChunks() ([]byte, error) {
|
||||
message := &filer_pb.Entry{
|
||||
Attributes: &filer_pb.FuseAttributes{
|
||||
Crtime: entry.Attr.Crtime.Unix(),
|
||||
@@ -23,7 +23,7 @@ func (entry Entry) EncodeAttributesAndChunks() ([]byte, error) {
|
||||
return proto.Marshal(message)
|
||||
}
|
||||
|
||||
func (entry Entry) DecodeAttributesAndChunks(blob []byte) (error) {
|
||||
func (entry *Entry) DecodeAttributesAndChunks(blob []byte) (error) {
|
||||
|
||||
message := &filer_pb.Entry{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user