refactor oplog to use db/internal migrations, remove InitTicket() for more reliability and simplify test step up and tear down (#37)

This commit is contained in:
Jim authored and GitHub committed 2020-05-11 10:30:44 -04:00
1 parent c43e05be2e
commit 0676ea51f1
7 files changed
+56 -289

No files matched your search

-4
View File
@@ -302,10 +302,6 @@ func (rw *GormReadWriter) addOplog(ctx context.Context, opType OpType, opts Opti
if err != nil {
return fmt.Errorf("error getting Ticketer %w for WithOplog", err)
}
err = ticketer.InitTicket(replayable.TableName())
if err != nil {
return fmt.Errorf("error getting initializing ticket %w for WithOplog", err)
}
ticket, err := ticketer.GetTicket(replayable.TableName())
if err != nil {
return fmt.Errorf("error getting ticket %w for WithOplog", err)