Browse Source

shell: fs.meta.save skip saving system logs

pull/2321/head
Chris Lu 3 years ago
parent
commit
cca588429b
  1. 5
      weed/shell/command_fs_meta_save.go

5
weed/shell/command_fs_meta_save.go

@ -3,6 +3,7 @@ package shell
import (
"flag"
"fmt"
"github.com/chrislusf/seaweedfs/weed/filer"
"io"
"os"
"path/filepath"
@ -125,6 +126,10 @@ func doTraverseBfsAndSaving(filerClient filer_pb.FilerClient, writer io.Writer,
err := filer_pb.TraverseBfs(filerClient, util.FullPath(path), func(parentPath util.FullPath, entry *filer_pb.Entry) {
if strings.HasPrefix(string(parentPath), filer.SystemLogDir) {
return
}
protoMessage := &filer_pb.FullEntry{
Dir: string(parentPath),
Entry: entry,

Loading…
Cancel
Save