vnodeSync.h 1.5 KB
Newer Older
S
TD-2289  
Shengliang Guan 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * 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/>.
 */

#ifndef TDENGINE_VNODE_SYNC_H
#define TDENGINE_VNODE_SYNC_H

#ifdef __cplusplus
extern "C" {
#endif
S
TD-2289  
Shengliang Guan 已提交
22
#include "vnodeInt.h"
S
TD-2289  
Shengliang Guan 已提交
23 24 25 26 27

uint32_t vnodeGetFileInfo(int32_t vgId, char *name, uint32_t *index, uint32_t eindex, int64_t *size, uint64_t *fver);
int32_t  vnodeGetWalInfo(int32_t vgId, char *fileName, int64_t *fileId);
void     vnodeNotifyRole(int32_t vgId, int8_t role);
void     vnodeCtrlFlow(int32_t vgId, int32_t level);
S
TD-2798  
Shengliang Guan 已提交
28 29
void     vnodeStartSyncFile(int32_t vgId);
void     vnodeStopSyncFile(int32_t vgId, uint64_t fversion);
S
TD-2289  
Shengliang Guan 已提交
30 31 32 33
void     vnodeConfirmForard(int32_t vgId, void *wparam, int32_t code);
int32_t  vnodeWriteToCache(int32_t vgId, void *wparam, int32_t qtype, void *rparam);
int32_t  vnodeGetVersion(int32_t vgId, uint64_t *fver, uint64_t *wver);

S
TD-3308  
Shengliang Guan 已提交
34
void     vnodeConfirmForward(void *pVnode, uint64_t version, int32_t code, bool force);
S
TD-2289  
Shengliang Guan 已提交
35

S
TD-2289  
Shengliang Guan 已提交
36 37 38 39
#ifdef __cplusplus
}
#endif

H
Hongze Cheng 已提交
40
#endif