From cc659101e7c5a3d8977e9a00209914bff4bb308f Mon Sep 17 00:00:00 2001 From: kthui <18255193+kthui@users.noreply.github.com> Date: Mon, 22 May 2023 17:06:11 -0700 Subject: [PATCH] Use a different way of updating instance group setting --- src/backend_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend_model.cc b/src/backend_model.cc index 8d8574fba..b2e7a6817 100644 --- a/src/backend_model.cc +++ b/src/backend_model.cc @@ -274,7 +274,7 @@ TritonModel::UpdateInstanceGroup(const inference::ModelConfig& new_model_config) // holding off new inference requests, and then commit the changes. std::unique_ptr> lock; RETURN_IF_ERROR(scheduler_->Update(&lock)); - config_.mutable_instance_group()->Swap(model_config.mutable_instance_group()); + *config_.mutable_instance_group() = model_config.instance_group(); RETURN_IF_ERROR(CommitInstances()); return Status::Success;