You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by ha...@apache.org on 2022/04/16 09:03:07 UTC
[skywalking-banyandb] branch main updated: fix deletion problem (#105)
This is an automated email from the ASF dual-hosted git repository.
hanahmily pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-banyandb.git
The following commit(s) were added to refs/heads/main by this push:
new ad94bb9 fix deletion problem (#105)
ad94bb9 is described below
commit ad94bb9e39276a985d1647cacae4afc565b17d83
Author: Jiajing LU <lu...@gmail.com>
AuthorDate: Sat Apr 16 17:03:03 2022 +0800
fix deletion problem (#105)
---
banyand/metadata/schema/etcd.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/banyand/metadata/schema/etcd.go b/banyand/metadata/schema/etcd.go
index 7225cd5..388d255 100644
--- a/banyand/metadata/schema/etcd.go
+++ b/banyand/metadata/schema/etcd.go
@@ -32,6 +32,7 @@ import (
commonv1 "github.com/apache/skywalking-banyandb/api/proto/banyandb/common/v1"
databasev1 "github.com/apache/skywalking-banyandb/api/proto/banyandb/database/v1"
+ propertyv1 "github.com/apache/skywalking-banyandb/api/proto/banyandb/property/v1"
)
var (
@@ -316,6 +317,8 @@ func (e *etcdSchemaRegistry) delete(ctx context.Context, metadata Metadata) (boo
message = &databasev1.IndexRuleBinding{}
case KindIndexRule:
message = &databasev1.IndexRule{}
+ case KindProperty:
+ message = &propertyv1.Property{}
}
if unmarshalErr := proto.Unmarshal(resp.PrevKvs[0].Value, message); unmarshalErr == nil {
e.notifyDelete(Metadata{