Fix build bug

This commit is contained in:
yulai.li
2021-08-26 16:20:35 +08:00
parent 2088f28424
commit 546efeba8f
5 changed files with 85 additions and 10 deletions

View File

@@ -82,6 +82,7 @@ func (f *Filer) LoadConfiguration(config *util.ViperProxy) {
func validateOneEnabledStore(config *util.ViperProxy) {
enabledStore := ""
for _, store := range Stores {
glog.V(0).Infof("Store Engines: %v", store.GetName())
if config.GetBool(store.GetName() + ".enabled") {
if enabledStore == "" {
enabledStore = store.GetName()

View File

@@ -30,6 +30,9 @@ func (store *TikvStore) KvGet(ctx context.Context, key []byte) ([]byte, error) {
}
return err
})
if isNotExists(err) {
return data, filer.ErrKvNotFound
}
return data, err
}