@@ -35,7 +35,7 @@ func TestRouteAdminPrecheckReportsConflict(t *testing.T) {
3535 reportedErr = err
3636 }
3737
38- info := routeDDLInfo {
38+ info := routeAdmissionInfo {
3939 key : getEventKey (10 , false ),
4040 commitTs : 10 ,
4141 addedTables : []* heartbeatpb.Table {
@@ -58,7 +58,7 @@ func TestRouteAdminPrecheckReportsConflict(t *testing.T) {
5858func TestRouteAdminApplyUpdatesRegistry (t * testing.T ) {
5959 admin := newTestRouteAdmin (t , routing .SchemaPlaceholder + "_target" , routing .TablePlaceholder )
6060
61- info := routeDDLInfo {
61+ info := routeAdmissionInfo {
6262 key : getEventKey (10 , false ),
6363 commitTs : 10 ,
6464 addedTables : []* heartbeatpb.Table {
@@ -85,7 +85,7 @@ func TestRouteAdminReadsNewTableBeforeDispatcherRegistration(t *testing.T) {
8585 store .AppendDDLEvent (3 , routeTableInfoDDL (3 , "db3" , "t" ))
8686 store .RequireRegisteredTablesForGetTableInfo ()
8787
88- info := routeDDLInfo {
88+ info := routeAdmissionInfo {
8989 key : getEventKey (10 , false ),
9090 commitTs : 10 ,
9191 addedTables : []* heartbeatpb.Table {
@@ -101,7 +101,7 @@ func TestRouteAdminReadsNewTableBeforeDispatcherRegistration(t *testing.T) {
101101func TestRouteAdminIgnoresDDLSpanInBlockTables (t * testing.T ) {
102102 admin := newTestRouteAdmin (t , routing .SchemaPlaceholder + "_target" , routing .TablePlaceholder )
103103
104- info := routeDDLInfo {
104+ info := routeAdmissionInfo {
105105 key : getEventKey (10 , false ),
106106 commitTs : 10 ,
107107 blockTables : & heartbeatpb.InfluencedTables {
@@ -124,7 +124,7 @@ func TestRouteAdminIgnoresDDLSpanInBlockTables(t *testing.T) {
124124func TestRouteAdminDropReleasesBootstrapBinding (t * testing.T ) {
125125 admin := newTestRouteAdmin (t , "target" , routing .TablePlaceholder )
126126
127- dropInfo := routeDDLInfo {
127+ dropInfo := routeAdmissionInfo {
128128 key : getEventKey (10 , false ),
129129 commitTs : 10 ,
130130 droppedTables : & heartbeatpb.InfluencedTables {
@@ -140,7 +140,7 @@ func TestRouteAdminDropReleasesBootstrapBinding(t *testing.T) {
140140 _ , ok := admin .tableSources [1 ]
141141 require .False (t , ok )
142142
143- addInfo := routeDDLInfo {
143+ addInfo := routeAdmissionInfo {
144144 key : getEventKey (20 , false ),
145145 commitTs : 20 ,
146146 addedTables : []* heartbeatpb.Table {
@@ -161,7 +161,7 @@ func TestRouteAdminTracksSourceAdmissionNotTableID(t *testing.T) {
161161
162162 source := routing.TableKey {Schema : "db1" , Table : "t" }
163163
164- addSameSourceInfo := routeDDLInfo {
164+ addSameSourceInfo := routeAdmissionInfo {
165165 key : getEventKey (10 , false ),
166166 commitTs : 10 ,
167167 addedTables : []* heartbeatpb.Table {
@@ -174,7 +174,7 @@ func TestRouteAdminTracksSourceAdmissionNotTableID(t *testing.T) {
174174 require .NoError (t , admin .apply (addSameSourceInfo ))
175175 require .Equal (t , 2 , admin .sourceRefs [source ])
176176
177- dropOnePhysicalIDInfo := routeDDLInfo {
177+ dropOnePhysicalIDInfo := routeAdmissionInfo {
178178 key : getEventKey (20 , false ),
179179 commitTs : 20 ,
180180 droppedTables : & heartbeatpb.InfluencedTables {
@@ -192,7 +192,7 @@ func TestRouteAdminTracksSourceAdmissionNotTableID(t *testing.T) {
192192 _ , ok = admin .tableSources [3 ]
193193 require .True (t , ok )
194194
195- truncateInfo := routeDDLInfo {
195+ truncateInfo := routeAdmissionInfo {
196196 key : getEventKey (30 , false ),
197197 commitTs : 30 ,
198198 droppedTables : & heartbeatpb.InfluencedTables {
@@ -213,7 +213,7 @@ func TestRouteAdminTracksSourceAdmissionNotTableID(t *testing.T) {
213213 _ , ok = admin .tableSources [4 ]
214214 require .True (t , ok )
215215
216- conflictInfo := routeDDLInfo {
216+ conflictInfo := routeAdmissionInfo {
217217 key : getEventKey (40 , false ),
218218 commitTs : 40 ,
219219 addedTables : []* heartbeatpb.Table {
0 commit comments