Added the ability to do Sequential Scans (#3378)

* Added the ability to do Seqential Scans
* Modify pkg/txn to run hooks with the outer context, instead of the context that was in a transaction
* update in application manual
This commit is contained in:
JoeSmithStarkers
2023-02-23 14:38:02 +11:00
committed by GitHub
parent 75a8d572cc
commit f767635080
6 changed files with 52 additions and 24 deletions

View File

@@ -35,19 +35,19 @@ func executeHooks(ctx context.Context, hooks []TxnFunc) {
}
}
func executePostCommitHooks(ctx context.Context) {
func executePostCommitHooks(ctx context.Context, outerCtx context.Context) {
m := hookManagerCtx(ctx)
executeHooks(ctx, m.postCommitHooks)
executeHooks(outerCtx, m.postCommitHooks)
}
func executePostRollbackHooks(ctx context.Context) {
func executePostRollbackHooks(ctx context.Context, outerCtx context.Context) {
m := hookManagerCtx(ctx)
executeHooks(ctx, m.postRollbackHooks)
executeHooks(outerCtx, m.postRollbackHooks)
}
func executePostCompleteHooks(ctx context.Context) {
func executePostCompleteHooks(ctx context.Context, outerCtx context.Context) {
m := hookManagerCtx(ctx)
executeHooks(ctx, m.postCompleteHooks)
executeHooks(outerCtx, m.postCompleteHooks)
}
func AddPostCommitHook(ctx context.Context, hook TxnFunc) {