Skip to content

Commit 1200928

Browse files
committed
report errors from primary task
1 parent 0748c8b commit 1200928

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/verifier/check.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (verifier *Verifier) CreateInitialTasks(ctx context.Context) error {
290290
}
291291
}
292292

293-
verifier.doInMetaTransaction(
293+
err := verifier.doInMetaTransaction(
294294
ctx,
295295
func(sctx mongo.SessionContext) error {
296296
isPrimary, err := verifier.CheckIsPrimary(ctx)
@@ -325,6 +325,10 @@ func (verifier *Verifier) CreateInitialTasks(ctx context.Context) error {
325325
},
326326
)
327327

328+
if err != nil {
329+
verifier.logger.Fatal().Err(err).Send()
330+
}
331+
328332
return nil
329333
}
330334

0 commit comments

Comments
 (0)