Documentation ¶
Index ¶
- func RunInspect(ctx *inspectContext)
- type Handle
- func (h *Handle) CacheTxnRequest(ctx context.Context, meta txn.TxnMeta, req any, rsp any) (err error)
- func (h *Handle) EvaluateTxnRequest(ctx context.Context, meta txn.TxnMeta) (err error)
- func (h *Handle) GetTxnEngine() moengine.TxnEngine
- func (h *Handle) HandleClose(ctx context.Context) (err error)
- func (h *Handle) HandleCommit(ctx context.Context, meta txn.TxnMeta) (err error)
- func (h *Handle) HandleCommitting(ctx context.Context, meta txn.TxnMeta) (err error)
- func (h *Handle) HandleCreateDatabase(ctx context.Context, meta txn.TxnMeta, req *db.CreateDatabaseReq, ...) (err error)
- func (h *Handle) HandleCreateRelation(ctx context.Context, meta txn.TxnMeta, req *db.CreateRelationReq, ...) (err error)
- func (h *Handle) HandleDestroy(ctx context.Context) (err error)
- func (h *Handle) HandleDropDatabase(ctx context.Context, meta txn.TxnMeta, req *db.DropDatabaseReq, ...) (err error)
- func (h *Handle) HandleDropOrTruncateRelation(ctx context.Context, meta txn.TxnMeta, req *db.DropOrTruncateRelationReq, ...) (err error)
- func (h *Handle) HandleFlushTable(ctx context.Context, meta txn.TxnMeta, req db.FlushTable, ...) (err error)
- func (h *Handle) HandleForceCheckpoint(ctx context.Context, meta txn.TxnMeta, req db.Checkpoint, ...) (err error)
- func (h *Handle) HandleGetLogTail(ctx context.Context, meta txn.TxnMeta, req apipb.SyncLogTailReq, ...) (err error)
- func (h *Handle) HandleInspectDN(ctx context.Context, meta txn.TxnMeta, req db.InspectDN, resp *db.InspectResp) (err error)
- func (h *Handle) HandlePreCommitWrite(ctx context.Context, meta txn.TxnMeta, req apipb.PrecommitWriteCmd, ...) (err error)
- func (h *Handle) HandlePrepare(ctx context.Context, meta txn.TxnMeta) (pts timestamp.Timestamp, err error)
- func (h *Handle) HandleRollback(ctx context.Context, meta txn.TxnMeta) (err error)
- func (h *Handle) HandleStartRecovery(ctx context.Context, ch chan txn.TxnMeta)
- func (h *Handle) HandleUpdateConstraint(ctx context.Context, meta txn.TxnMeta, req *db.UpdateConstraintReq, ...) (err error)
- func (h *Handle) HandleWrite(ctx context.Context, meta txn.TxnMeta, req *db.WriteReq, resp *db.WriteResp) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunInspect ¶ added in v0.7.0
func RunInspect(ctx *inspectContext)
Types ¶
type Handle ¶
type Handle struct {
// contains filtered or unexported fields
}
TODO::GC the abandoned txn.
func (*Handle) CacheTxnRequest ¶
func (*Handle) EvaluateTxnRequest ¶ added in v0.7.0
EvaluateTxnRequest only evaluate the request ,do not change the state machine of TxnEngine.
func (*Handle) GetTxnEngine ¶
func (*Handle) HandleCommit ¶
func (*Handle) HandleCommitting ¶
func (*Handle) HandleCreateDatabase ¶
func (h *Handle) HandleCreateDatabase( ctx context.Context, meta txn.TxnMeta, req *db.CreateDatabaseReq, resp *db.CreateDatabaseResp) (err error)
func (*Handle) HandleCreateRelation ¶
func (h *Handle) HandleCreateRelation( ctx context.Context, meta txn.TxnMeta, req *db.CreateRelationReq, resp *db.CreateRelationResp) (err error)
func (*Handle) HandleDropDatabase ¶
func (h *Handle) HandleDropDatabase( ctx context.Context, meta txn.TxnMeta, req *db.DropDatabaseReq, resp *db.DropDatabaseResp) (err error)
func (*Handle) HandleDropOrTruncateRelation ¶
func (h *Handle) HandleDropOrTruncateRelation( ctx context.Context, meta txn.TxnMeta, req *db.DropOrTruncateRelationReq, resp *db.DropOrTruncateRelationResp) (err error)
func (*Handle) HandleFlushTable ¶
func (h *Handle) HandleFlushTable( ctx context.Context, meta txn.TxnMeta, req db.FlushTable, resp *apipb.SyncLogTailResp) (err error)
func (*Handle) HandleForceCheckpoint ¶ added in v0.7.0
func (h *Handle) HandleForceCheckpoint( ctx context.Context, meta txn.TxnMeta, req db.Checkpoint, resp *apipb.SyncLogTailResp) (err error)
func (*Handle) HandleGetLogTail ¶
func (h *Handle) HandleGetLogTail( ctx context.Context, meta txn.TxnMeta, req apipb.SyncLogTailReq, resp *apipb.SyncLogTailResp) (err error)
func (*Handle) HandleInspectDN ¶ added in v0.7.0
func (*Handle) HandlePreCommitWrite ¶
func (h *Handle) HandlePreCommitWrite( ctx context.Context, meta txn.TxnMeta, req apipb.PrecommitWriteCmd, resp *apipb.SyncLogTailResp) (err error)
func (*Handle) HandlePrepare ¶
func (*Handle) HandleRollback ¶
func (*Handle) HandleStartRecovery ¶
func (*Handle) HandleUpdateConstraint ¶ added in v0.7.0
func (h *Handle) HandleUpdateConstraint( ctx context.Context, meta txn.TxnMeta, req *db.UpdateConstraintReq, resp *db.UpdateConstraintResp) (err error)
Click to show internal directories.
Click to hide internal directories.