Browse Source

skip the index that for kv usage.

pull/1449/head
ruitao.liu 4 years ago
parent
commit
450cf07505
  1. 3
      weed/filer/elastic/v7/elastic_store.go

3
weed/filer/elastic/v7/elastic_store.go

@ -191,6 +191,9 @@ func (store *ElasticStore) listRootDirectoryEntries(ctx context.Context, startFi
return entries, err return entries, err
} }
for _, index := range indexResult { for _, index := range indexResult {
if index.Index == indexKV {
continue
}
if strings.HasPrefix(index.Index, indexPrefix) { if strings.HasPrefix(index.Index, indexPrefix) {
if entry, err := store.FindEntry(ctx, if entry, err := store.FindEntry(ctx,
weed_util.FullPath("/"+strings.Replace(index.Index, indexPrefix, "", 1))); err == nil { weed_util.FullPath("/"+strings.Replace(index.Index, indexPrefix, "", 1))); err == nil {

Loading…
Cancel
Save