robotLJW commented on a change in pull request #228:
URL: https://github.com/apache/servicecomb-kie/pull/228#discussion_r756753157
##########
File path: server/service/kv/kv_svc.go
##########
@@ -250,9 +312,26 @@ func Update(ctx context.Context, kv
*model.UpdateKVRequest) (*model.KVDoc, error
}
func FindOneAndDelete(ctx context.Context, kvID string, project, domain
string) (*model.KVDoc, error) {
- kv, err := datasource.GetBroker().GetKVDao().FindOneAndDelete(ctx,
kvID, project, domain)
- if err != nil {
- return nil, err
+ var kv *model.KVDoc
+ var err error
+ if cfg.GetSync().Enabled {
Review comment:
使用了CUDOption
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]