@@ -148,7 +148,13 @@ void ClientWorker::setupMsgHandlers() {
148148 &ClientWorker::procSchemaUpdateRequest);
149149 SET_MSG_HANDLER (MetadataValidateRequest,
150150 &ClientWorker::procMetadataValidateRequest);
151-
151+ SET_MSG_HANDLER (SchemaSearchRequest,
152+ &ClientWorker::procSchemaSearchRequest);
153+ SET_MSG_HANDLER (SchemaViewRequest,
154+ &ClientWorker::procSchemaViewRequest);
155+ SET_MSG_HANDLER (SchemaDeleteRequest,
156+ &ClientWorker::procSchemaDeleteRequest);
157+
152158 // Requires updating repo cache
153159 SET_MSG_HANDLER (RepoCreateRequest, &ClientWorker::procRepoCreate);
154160 SET_MSG_HANDLER (RepoUpdateRequest, &ClientWorker::procRepoUpdate);
@@ -241,9 +247,6 @@ void ClientWorker::setupMsgHandlers() {
241247 repoAllocationSetDefault);
242248 SET_MSG_HANDLER_DB (RepoAllocationStatsRequest, RepoAllocationStatsReply,
243249 repoAllocationStats);
244- SET_MSG_HANDLER_DB (SchemaSearchRequest, SchemaDataReply, schemaSearch);
245- SET_MSG_HANDLER_DB (SchemaViewRequest, SchemaDataReply, schemaView);
246- SET_MSG_HANDLER_DB (SchemaDeleteRequest, AckReply, schemaDelete);
247250 SET_MSG_HANDLER_DB (TagSearchRequest, TagDataReply, tagSearch);
248251 SET_MSG_HANDLER_DB (TagListByCountRequest, TagDataReply, tagListByCount);
249252 SET_MSG_HANDLER_DB (TopicListTopicsRequest, TopicDataReply,
@@ -777,6 +780,45 @@ ClientWorker::procMetadataValidateRequest(const std::string &a_uid,
777780 PROC_MSG_END (log_context);
778781}
779782
783+ std::unique_ptr<IMessage>
784+ ClientWorker::procSchemaSearchRequest (const std::string &a_uid,
785+ std::unique_ptr<IMessage> &&msg_request,
786+ LogContext log_context) {
787+ log_context.correlation_id =
788+ std::get<std::string>(msg_request->get (MessageAttribute::CORRELATION_ID ));
789+ PROC_MSG_BEGIN (SchemaSearchRequest, SchemaDataReply, log_context)
790+
791+ m_schema_handler->handleSearch (a_uid, *request, reply, log_context);
792+
793+ PROC_MSG_END (log_context);
794+ }
795+
796+ std::unique_ptr<IMessage>
797+ ClientWorker::procSchemaViewRequest (const std::string &a_uid,
798+ std::unique_ptr<IMessage> &&msg_request,
799+ LogContext log_context) {
800+ log_context.correlation_id =
801+ std::get<std::string>(msg_request->get (MessageAttribute::CORRELATION_ID ));
802+ PROC_MSG_BEGIN (SchemaViewRequest, SchemaDataReply, log_context)
803+
804+ m_schema_handler->handleView (a_uid, *request, reply, log_context);
805+
806+ PROC_MSG_END (log_context);
807+ }
808+
809+ std::unique_ptr<IMessage>
810+ ClientWorker::procSchemaDeleteRequest (const std::string &a_uid,
811+ std::unique_ptr<IMessage> &&msg_request,
812+ LogContext log_context) {
813+ log_context.correlation_id =
814+ std::get<std::string>(msg_request->get (MessageAttribute::CORRELATION_ID ));
815+ PROC_MSG_BEGIN (SchemaDeleteRequest, AckReply, log_context)
816+
817+ m_schema_handler->handleDelete (a_uid, *request, reply, log_context);
818+
819+ PROC_MSG_END (log_context);
820+ }
821+
780822std::unique_ptr<IMessage>
781823ClientWorker::procRecordCreateRequest (const std::string &a_uid,
782824 std::unique_ptr<IMessage> &&msg_request,
0 commit comments