diff options
author | Zuul <zuul@review.openstack.org> | 2018-07-10 10:24:58 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-07-10 10:24:58 +0000 |
commit | b97481ce191a1bf85ce920d302d6fb460aaa0d7c (patch) | |
tree | 755e7071478c64e21db2d069cf8b939f133c8ff2 | |
parent | 80473775623c9ba5e8cf3e76d6f523452d0d56a8 (diff) | |
parent | a84c946767af552deda29cba118f532348444ff8 (diff) | |
download | oslo-messaging-b97481ce191a1bf85ce920d302d6fb460aaa0d7c.tar.gz |
Merge "No longer allow redundant calls to server start()"
-rw-r--r-- | oslo_messaging/server.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/oslo_messaging/server.py b/oslo_messaging/server.py index d2e50ac..b889322 100644 --- a/oslo_messaging/server.py +++ b/oslo_messaging/server.py @@ -395,13 +395,11 @@ class MessageHandlingServer(service.ServiceBase, _OrderedTaskRunner): choose to dispatch messages in a new thread, coroutine or simply the current thread. """ - # Warn that restarting will be deprecated if self._started: - LOG.warning(_LW('Restarting a MessageHandlingServer is inherently ' - 'racy. It is deprecated, and will become a noop ' - 'in a future release of oslo.messaging. If you ' - 'need to restart MessageHandlingServer you should ' - 'instantiate a new object.')) + LOG.warning(_LW('The server has already been started. Ignoring' + ' the redundant call to start().')) + return + self._started = True executor_opts = {} |