[TD-335] rename some function names
This commit is contained in:
parent
dfbe9ace8a
commit
406e170f59
|
@ -13,15 +13,15 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TDENGINE_DNODE_READ_H
|
#ifndef TDENGINE_DNODE_VREAD_H
|
||||||
#define TDENGINE_DNODE_READ_H
|
#define TDENGINE_DNODE_VREAD_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int32_t dnodeInitRead();
|
int32_t dnodeInitVnodeRead();
|
||||||
void dnodeCleanupRead();
|
void dnodeCleanupVnodeRead();
|
||||||
void dnodeDispatchToVnodeReadQueue(SRpcMsg *pMsg);
|
void dnodeDispatchToVnodeReadQueue(SRpcMsg *pMsg);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -13,17 +13,16 @@
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef TDENGINE_DNODE_WRITE_H
|
#ifndef TDENGINE_DNODE_VWRITE_H
|
||||||
#define TDENGINE_DNODE_WRITE_H
|
#define TDENGINE_DNODE_VWRITE_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int32_t dnodeInitWrite();
|
int32_t dnodeInitVnodeWrite();
|
||||||
void dnodeCleanupWrite();
|
void dnodeCleanupVnodeWrite();
|
||||||
void dnodeDispatchToVnodeWriteQueue(SRpcMsg *pMsg);
|
void dnodeDispatchToVnodeWriteQueue(SRpcMsg *pMsg);
|
||||||
void dnodeSendWriteResponse(void *pVnode, void *param, int32_t code);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ static void dnodeHandleIdleReadWorker(SReadWorker *);
|
||||||
static SReadWorkerPool readPool;
|
static SReadWorkerPool readPool;
|
||||||
static taos_qset readQset;
|
static taos_qset readQset;
|
||||||
|
|
||||||
int32_t dnodeInitRead() {
|
int32_t dnodeInitVnodeRead() {
|
||||||
readQset = taosOpenQset();
|
readQset = taosOpenQset();
|
||||||
|
|
||||||
readPool.min = 2;
|
readPool.min = 2;
|
||||||
|
@ -71,7 +71,7 @@ int32_t dnodeInitRead() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dnodeCleanupRead() {
|
void dnodeCleanupVnodeRead() {
|
||||||
for (int i=0; i < readPool.max; ++i) {
|
for (int i=0; i < readPool.max; ++i) {
|
||||||
SReadWorker *pWorker = readPool.readWorker + i;
|
SReadWorker *pWorker = readPool.readWorker + i;
|
||||||
if (pWorker->thread) {
|
if (pWorker->thread) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ static void dnodeHandleIdleWorker(SWriteWorker *pWorker);
|
||||||
|
|
||||||
SWriteWorkerPool wWorkerPool;
|
SWriteWorkerPool wWorkerPool;
|
||||||
|
|
||||||
int32_t dnodeInitWrite() {
|
int32_t dnodeInitVnodeWrite() {
|
||||||
wWorkerPool.max = tsNumOfCores;
|
wWorkerPool.max = tsNumOfCores;
|
||||||
wWorkerPool.writeWorker = (SWriteWorker *)calloc(sizeof(SWriteWorker), wWorkerPool.max);
|
wWorkerPool.writeWorker = (SWriteWorker *)calloc(sizeof(SWriteWorker), wWorkerPool.max);
|
||||||
if (wWorkerPool.writeWorker == NULL) return -1;
|
if (wWorkerPool.writeWorker == NULL) return -1;
|
||||||
|
@ -67,7 +67,7 @@ int32_t dnodeInitWrite() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dnodeCleanupWrite() {
|
void dnodeCleanupVnodeWrite() {
|
||||||
for (int32_t i = 0; i < wWorkerPool.max; ++i) {
|
for (int32_t i = 0; i < wWorkerPool.max; ++i) {
|
||||||
SWriteWorker *pWorker = wWorkerPool.writeWorker + i;
|
SWriteWorker *pWorker = wWorkerPool.writeWorker + i;
|
||||||
if (pWorker->thread) {
|
if (pWorker->thread) {
|
||||||
|
|
Loading…
Reference in New Issue