TDengine/source/dnode/snode/src/snode.c

32 lines
1 KiB
C
Raw Normal View History

2021-09-22 09:27:48 +00:00
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2021-12-27 10:43:27 +00:00
#include "sndInt.h"
2021-09-22 09:27:48 +00:00
2021-12-28 08:20:48 +00:00
SSnode *sndOpen(const char *path, const SSnodeOpt *pOption) {
2021-12-27 10:43:27 +00:00
SSnode *pSnode = calloc(1, sizeof(SSnode));
return pSnode;
2021-09-22 09:27:48 +00:00
}
2021-12-27 10:43:27 +00:00
void sndClose(SSnode *pSnode) { free(pSnode); }
int32_t sndGetLoad(SSnode *pSnode, SSnodeLoad *pLoad) { return 0; }
2021-12-29 12:31:04 +00:00
int32_t sndProcessMsg(SSnode *pSnode, SRpcMsg *pMsg, SRpcMsg **pRsp) {
2021-12-27 10:43:27 +00:00
*pRsp = NULL;
return 0;
}
2021-12-28 08:20:48 +00:00
void sndDestroy(const char *path) {}