mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: store database event if the key is invalid (#45348)
See also: #45136, #45124 Signed-off-by: yangxuan <xuan.yang@zilliz.com>
This commit is contained in:
parent
8d1ea751a6
commit
dcf490663c
@ -377,12 +377,12 @@ func (mt *MetaTable) CreateDatabase(ctx context.Context, db *model.Database, ts
|
||||
|
||||
func (mt *MetaTable) createDatabasePrivate(ctx context.Context, db *model.Database, ts typeutil.Timestamp) error {
|
||||
dbName := db.Name
|
||||
if err := mt.catalog.CreateDatabase(ctx, db, ts); err != nil {
|
||||
if err := hookutil.CreateEZByDBProperties(db.Properties); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// Call back cipher plugin when creating database succeeded
|
||||
if err := hookutil.CreateEZByDBProperties(db.Properties); err != nil {
|
||||
if err := mt.catalog.CreateDatabase(ctx, db, ts); err != nil {
|
||||
hookutil.RemoveEZByDBProperties(db.Properties) // ignore the error since create database failed
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user