Merge pull request #3293 from guo-sj/fix_save_inside_filer

This commit is contained in:
Chris Lu 2022-07-10 19:19:17 -07:00 committed by GitHub
commit a77c2232be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,9 +2,10 @@ package filer
import (
"bytes"
"time"
"github.com/chrislusf/seaweedfs/weed/pb/filer_pb"
"github.com/chrislusf/seaweedfs/weed/wdclient"
"time"
)
func ReadEntry(masterClient *wdclient.MasterClient, filerClient filer_pb.SeaweedFilerClient, dir, name string, byteBuffer *bytes.Buffer) error {
@ -60,7 +61,7 @@ func SaveInsideFiler(client filer_pb.SeaweedFilerClient, dir, name string, conte
},
Content: content,
},
SkipCheckParentDirectory: true,
SkipCheckParentDirectory: false,
})
} else if err == nil {
entry := resp.Entry