Jason918 commented on pull request #11960:
URL: https://github.com/apache/pulsar/pull/11960#issuecomment-914990934


   > You can apply following diff to fix C++ client build failure.
   > 
   > ```diff
   > diff --git a/pulsar-client-cpp/lib/Commands.cc 
b/pulsar-client-cpp/lib/Commands.cc
   > index 87c149c5b87..760549aaa31 100644
   > --- a/pulsar-client-cpp/lib/Commands.cc
   > +++ b/pulsar-client-cpp/lib/Commands.cc
   > @@ -642,6 +642,18 @@ std::string Commands::messageType(BaseCommand_Type 
type) {
   >          case BaseCommand::END_TXN_ON_SUBSCRIPTION_RESPONSE:
   >              return "END_TXN_ON_SUBSCRIPTION_RESPONSE";
   >              break;
   > +        case BaseCommand::GET_CURSOR:
   > +            return "GET_CURSOR";
   > +        case BaseCommand::GET_CURSOR_RESPONSE:
   > +            return "GET_CURSOR_RESPONSE";
   > +        case BaseCommand::CREATE_CURSOR:
   > +            return "CREATE_CURSOR";
   > +        case BaseCommand::CREATE_CURSOR_RESPONSE:
   > +            return "CREATE_CURSOR_RESPONSE";
   > +        case BaseCommand::DELETE_CURSOR:
   > +            return "DELETE_CURSOR";
   > +        case BaseCommand::UPDATE_CURSOR:
   > +            return "UPDATE_CURSOR";
   >      };
   >      BOOST_THROW_EXCEPTION(std::logic_error("Invalid BaseCommand 
enumeration value"));
   >  }
   > ```
   
   Thanks for your patch. :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to