Skip to content

Commit

Permalink
reorder ExecuteMultiFetchAsDBA and ExecuteMultiFetchAsDBARequest lexi…
Browse files Browse the repository at this point in the history
…cographically

Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Mar 24, 2024
1 parent 3eb6743 commit c974398
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions proto/vtctldata.proto
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,15 @@ message ExecuteFetchAsDBAResponse {
query.QueryResult result = 1;
}

message ExecuteHookRequest {
topodata.TabletAlias tablet_alias = 1;
tabletmanagerdata.ExecuteHookRequest tablet_hook_request = 2;
}

message ExecuteHookResponse {
tabletmanagerdata.ExecuteHookResponse hook_result = 1;
}

message ExecuteMultiFetchAsDBARequest {
topodata.TabletAlias tablet_alias = 1;
// SQL could have potentially multiple queries separated by semicolons.
Expand All @@ -706,15 +715,6 @@ message ExecuteMultiFetchAsDBAResponse {
repeated query.QueryResult results = 1;
}

message ExecuteHookRequest {
topodata.TabletAlias tablet_alias = 1;
tabletmanagerdata.ExecuteHookRequest tablet_hook_request = 2;
}

message ExecuteHookResponse {
tabletmanagerdata.ExecuteHookResponse hook_result = 1;
}

message FindAllShardsInKeyspaceRequest {
string keyspace = 1;
}
Expand Down
4 changes: 2 additions & 2 deletions proto/vtctlservice.proto
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ service Vtctld {
rpc ExecuteFetchAsApp(vtctldata.ExecuteFetchAsAppRequest) returns (vtctldata.ExecuteFetchAsAppResponse) {};
// ExecuteFetchAsDBA executes a SQL query on the remote tablet as the DBA user.
rpc ExecuteFetchAsDBA(vtctldata.ExecuteFetchAsDBARequest) returns (vtctldata.ExecuteFetchAsDBAResponse) {};
// ExecuteMultiFetchAsDBA executes one or more SQL queries on the remote tablet as the DBA user.
rpc ExecuteMultiFetchAsDBA(vtctldata.ExecuteMultiFetchAsDBARequest) returns (vtctldata.ExecuteMultiFetchAsDBAResponse) {};
// ExecuteHook runs the hook on the tablet.
rpc ExecuteHook(vtctldata.ExecuteHookRequest) returns (vtctldata.ExecuteHookResponse);
// ExecuteMultiFetchAsDBA executes one or more SQL queries on the remote tablet as the DBA user.
rpc ExecuteMultiFetchAsDBA(vtctldata.ExecuteMultiFetchAsDBARequest) returns (vtctldata.ExecuteMultiFetchAsDBAResponse) {};
// FindAllShardsInKeyspace returns a map of shard names to shard references
// for a given keyspace.
rpc FindAllShardsInKeyspace(vtctldata.FindAllShardsInKeyspaceRequest) returns (vtctldata.FindAllShardsInKeyspaceResponse) {};
Expand Down

0 comments on commit c974398

Please sign in to comment.