enh(s3/writing): enable writing to s3 always
This commit is contained in:
parent
4d10f28a00
commit
d2ae4a6e26
|
@ -133,6 +133,7 @@ int32_t vnodeAsyncCommit(SVnode* pVnode);
|
|||
bool vnodeShouldRollback(SVnode* pVnode);
|
||||
|
||||
// vnodeSync.c
|
||||
int32_t vnodeNodeId(SVnode* pVnode);
|
||||
int32_t vnodeSyncOpen(SVnode* pVnode, char* path, int32_t vnodeVersion);
|
||||
int32_t vnodeSyncStart(SVnode* pVnode);
|
||||
void vnodeSyncPreClose(SVnode* pVnode);
|
||||
|
|
|
@ -811,6 +811,11 @@ bool vnodeIsLeader(SVnode *pVnode) {
|
|||
return true;
|
||||
}
|
||||
|
||||
int32_t vnodeNodeId(SVnode *pVnode) {
|
||||
SSyncCfg *syncCfg = &pVnode->config.syncCfg;
|
||||
return syncCfg->nodeInfo[syncCfg->myIndex].nodeId;
|
||||
}
|
||||
|
||||
int32_t vnodeGetSnapshot(SVnode *pVnode, SSnapshot *pSnap) {
|
||||
int code = 0;
|
||||
pSnap->lastApplyIndex = pVnode->state.committed;
|
||||
|
|
Loading…
Reference in New Issue