Parcourir la source

[2689] corrected conflict resolution on merge.

I kept the wrong version of the code.
JINMEI Tatuya il y a 12 ans
Parent
commit
3fa16c71cb
1 fichiers modifiés avec 10 ajouts et 3 suppressions
  1. 10 3
      src/bin/stats/stats.py.in

+ 10 - 3
src/bin/stats/stats.py.in

@@ -267,9 +267,16 @@ class Stats:
         # It counts the number of instances of same module by
         # examining the third value from the array result of
         # 'show_processes' of Init
-        seq = self.cc_session.group_sendmsg(
-            isc.config.ccsession.create_command("show_processes"), 'Init')
-        (answer, env) = self.cc_session.group_recvmsg(False, seq)
+        try:
+            value = self.mccs.rpc_call('show_processes', 'Init')
+        except isc.config.RPCRecipientMissing:
+            # This has been SessionTimeout before, so we keep the original
+            # behavior.
+            raise
+        except isc.config.RPCError:
+            # TODO: Is it OK to just pass? As part of refactoring, preserving
+            # the original behaviour.
+            value = None
         modules = []
         if type(value) is list:
             # NOTE: For example, the "show_processes" command