Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: comment (#7607)

p0ny97fec7a4dd3c
diff --git a/backend/runner/plancheck/ghost_sync_executor.go b/backend/runner/plancheck/ghost_sync_executor.go
index 4bc165b4a5..d182524143 100644
--- a/backend/runner/plancheck/ghost_sync_executor.go
+++ b/backend/runner/plancheck/ghost_sync_executor.go
@@ -13,7 +13,7 @@ import (
storepb "github.com/bytebase/bytebase/proto/generated-go/store"
)
-// NewGhostSyncExecutor creates a task check gh-ost sync executor.
+// NewGhostSyncExecutor creates a gh-ost sync check executor.
func NewGhostSyncExecutor(store *store.Store, secret string) Executor {
return &GhostSyncExecutor{
store: store,
@@ -21,13 +21,13 @@ func NewGhostSyncExecutor(store *store.Store, secret string) Executor {
}
}
-// GhostSyncExecutor is the task check gh-ost sync executor.
+// GhostSyncExecutor is the gh-ost sync check executor.
type GhostSyncExecutor struct {
store *store.Store
secret string
}
-// Run will run the task check database connector executor once.
+// Run runs the gh-ost sync check executor.
func (e *GhostSyncExecutor) Run(ctx context.Context, planCheckRun *store.PlanCheckRunMessage) (results []*storepb.PlanCheckRunResult_Result, err error) {
// gh-ost dry run could panic.
// It may be bytebase who panicked, but that's rare. So
diff --git a/backend/runner/plancheck/pitr_mysql_executor.go b/backend/runner/plancheck/pitr_mysql_executor.go
index 3998e895c9..55c8052a7b 100644
--- a/backend/runner/plancheck/pitr_mysql_executor.go
+++ b/backend/runner/plancheck/pitr_mysql_executor.go
@@ -12,7 +12,7 @@ import (
storepb "github.com/bytebase/bytebase/proto/generated-go/store"
)
-// NewPITRMySQLExecutor creates a task check migration schema executor.
+// NewPITRMySQLExecutor creates a plan check PITR MySQL executor.
func NewPITRMySQLExecutor(store *store.Store, dbFactory *dbfactory.DBFactory) Executor {
return &PITRMySQLExecutor{
store: store,
@@ -20,13 +20,13 @@ func NewPITRMySQLExecutor(store *store.Store, dbFactory *dbfactory.DBFactory) Ex
}
}
-// PITRMySQLExecutor is the task check migration schema executor.
+// PITRMySQLExecutor is to check if the MySQL database is ready for PITR.
type PITRMySQLExecutor struct {
store *store.Store
dbFactory *dbfactory.DBFactory
}
-// Run will run the task check migration schema executor once.
+// Run runs the PITR MySQL executor.
func (e *PITRMySQLExecutor) Run(ctx context.Context, planCheckRun *store.PlanCheckRunMessage) ([]*storepb.PlanCheckRunResult_Result, error) {
instance, databaseName, err := func() (*store.InstanceMessage, string, error) {
if planCheckRun.Config.GetPitrConfig().GetTargetInstanceId() != 0 {
diff --git a/backend/runner/plancheck/statement_advise_executor.go b/backend/runner/plancheck/statement_advise_executor.go
index 4319601767..aabd5c174b 100644
--- a/backend/runner/plancheck/statement_advise_executor.go
+++ b/backend/runner/plancheck/statement_advise_executor.go
@@ -30,14 +30,14 @@ func NewStatementAdviseExecutor(
}
}
-// StatementAdviseExecutor is the plan check statement statement advise executor.
+// StatementAdviseExecutor is the plan check statement advise executor.
type StatementAdviseExecutor struct {
store *store.Store
dbFactory *dbfactory.DBFactory
licenseService enterpriseAPI.LicenseService
}
-// Run will run the plan check statement advise executor once, and run its sub-advisor one-by-one.
+// Run will run the plan check statement advise executor once, and run its sub-advisors one-by-one.
func (e *StatementAdviseExecutor) Run(ctx context.Context, planCheckRun *store.PlanCheckRunMessage) ([]*storepb.PlanCheckRunResult_Result, error) {
if planCheckRun.Type != store.PlanCheckDatabaseStatementAdvise {
return nil, common.Errorf(common.Invalid, "unexpected plan check type in statement advise executor: %v", planCheckRun.Type)
diff --git a/backend/runner/plancheck/statement_type_executor.go b/backend/runner/plancheck/statement_type_executor.go
index 0199a48e3d..cc4d35115d 100644
--- a/backend/runner/plancheck/statement_type_executor.go
+++ b/backend/runner/plancheck/statement_type_executor.go
@@ -23,7 +23,7 @@ import (
var _ Executor = (*StatementTypeExecutor)(nil)
-// NewStatementTypeExecutor creates a task check DML executor.
+// NewStatementTypeExecutor creates a statement type executor.
func NewStatementTypeExecutor(store *store.Store, dbFactory *dbfactory.DBFactory) Executor {
return &StatementTypeExecutor{
store: store,
@@ -31,13 +31,13 @@ func NewStatementTypeExecutor(store *store.Store, dbFactory *dbfactory.DBFactory
}
}
-// StatementTypeExecutor is the task check DML executor.
+// StatementTypeExecutor is the statement type executor.
type StatementTypeExecutor struct {
store *store.Store
dbFactory *dbfactory.DBFactory
}
-// Run will run the task check database connector executor once.
+// Run runs the statement type executor.
func (e *StatementTypeExecutor) Run(ctx context.Context, planCheckRun *store.PlanCheckRunMessage) ([]*storepb.PlanCheckRunResult_Result, error) {
changeType := planCheckRun.Config.ChangeDatabaseType
if changeType == storepb.PlanCheckRunConfig_CHANGE_DATABASE_TYPE_UNSPECIFIED {