RequestorSubscriptions.cpp
上传用户:romrleung
上传日期:2022-05-23
资源大小:18897k
文件大小:2k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #include "Requestor.hpp"
  14. #include <signaldata/GrepImpl.hpp>
  15. #include <signaldata/SumaImpl.hpp>
  16. #include <rep/rep_version.hpp>
  17. /*****************************************************************************
  18.  * Create Subscription Id
  19.  *****************************************************************************/
  20. /*****************************************************************************
  21.  * Create Subscription
  22.  *****************************************************************************/
  23. /*****************************************************************************
  24.  * Start Subscription
  25.  *****************************************************************************/
  26. /*****************************************************************************
  27.  * Remove Subscription
  28.  *****************************************************************************/
  29. void
  30. Requestor::execGREP_SUB_REMOVE_REF(NdbApiSignal* signal) 
  31. {
  32. #if 0
  33.   GrepSubRemoveRef * const ref = (GrepSubRemoveRef *)signal->getDataPtr();
  34.   Uint32 subId           = ref->subscriptionId;
  35.   Uint32 subKey          = ref->subscriptionKey;
  36.   Uint32 err             = ref->err;
  37.   signal->theData[0] = EventReport::GrepSubscriptionAlert;
  38.   signal->theData[1] = GrepEvent::GrepSS_SubRemoveRef;
  39.   signal->theData[2] = subId;
  40.   signal->theData[3] = subKey;
  41.   signal->theData[4] = (Uint32)err;
  42.   sendSignal(CMVMI_REF,GSN_EVENT_REP,signal, 5, JBB);
  43. #endif
  44. }