]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix rabbitmq version checking for AMQP_STATUS_SSL_SET_ENGINE_FAILED 48238/head
authorFrancisco J. Solis <siscomagma@gmail.com>
Sun, 25 Sep 2022 06:06:14 +0000 (01:06 -0500)
committerFrancisco J. Solis <siscomagma@gmail.com>
Sun, 25 Sep 2022 06:06:14 +0000 (01:06 -0500)
This commit adds the librabbitmq-c version checking for ensuring that the new case for the switch is only added in the corresponding rabbitmq versions.
Fixes: http://tracker.ceph.com/issues/53252
Signed-off-by: Francisco J. Solis <siscomagma@gmail.com>
src/rgw/rgw_amqp.cc

index 6a11adf0692a18bb5626dfa893973a9746a3860f..a56c8269b04d011c35905c64999768e932ce4f8f 100644 (file)
@@ -322,6 +322,10 @@ std::string to_string(amqp_status_enum s) {
       return "AMQP_STATUS_SSL_CONNECTION_FAILED";
     case _AMQP_STATUS_SSL_NEXT_VALUE:
       return "AMQP_STATUS_INTERNAL"; 
+#if AMQP_VERSION >= AMQP_VERSION_CODE(0, 11, 0, 0)
+    case AMQP_STATUS_SSL_SET_ENGINE_FAILED:
+      return "AMQP_STATUS_SSL_SET_ENGINE_FAILED";
+#endif
     default:
       return "AMQP_STATUS_UNKNOWN";
   }