Skip to content

Commit 8e7eacb

Browse files
committed
check for an error
1 parent 4372244 commit 8e7eacb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

atlas/consensus/server.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ func (s *Server) StealTableOwnership(ctx context.Context, req *StealTableOwnersh
5353
}()
5454

5555
_, err = atlas.ExecuteSQL(ctx, "BEGIN IMMEDIATE", conn, false)
56+
if err != nil {
57+
return nil, err
58+
}
5659

5760
tr := GetDefaultTableRepository(ctx, conn)
5861
existingTable, err := tr.GetTable(req.GetTable().GetName())

0 commit comments

Comments
 (0)