File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tensorflow_serving/model_servers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ limitations under the License.
24
24
25
25
#include " google/protobuf/any.pb.h"
26
26
#include " google/protobuf/wrappers.pb.h"
27
+ #include " google/protobuf/util/message_differencer.h"
27
28
#include " tensorflow/core/lib/core/stringpiece.h"
28
29
#include " tensorflow/core/lib/io/path.h"
29
30
#include " tensorflow/core/lib/strings/strcat.h"
@@ -453,7 +454,8 @@ Status ServerCore::ReloadConfig(const ModelServerConfig& new_config) {
453
454
const bool accept_transition =
454
455
is_first_config ||
455
456
(config_.config_case () == ModelServerConfig::kModelConfigList &&
456
- new_config.config_case () == ModelServerConfig::kModelConfigList );
457
+ new_config.config_case () == ModelServerConfig::kModelConfigList ) ||
458
+ protobuf::util::MessageDifferencer::Equals (config_, new_config);
457
459
if (!accept_transition) {
458
460
return errors::FailedPrecondition (
459
461
" Cannot transition to requested config. It is only legal to transition "
You can’t perform that action at this time.
0 commit comments