Skip to content

Commit

Permalink
sql,kv: add compact_engine_span for internal use
Browse files Browse the repository at this point in the history
This sql builtin can be used to compact the key span for a
running node, given the (nodeID, storeID, start_key, end_key).

Informs #26068

Release note: None
  • Loading branch information
sumeerbhola committed Dec 17, 2020
1 parent c8e172d commit d92373b
Show file tree
Hide file tree
Showing 14 changed files with 601 additions and 82 deletions.
5 changes: 5 additions & 0 deletions pkg/kv/kvclient/kvcoord/dist_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ func (ds *DistSender) FirstRange() (*roachpb.RangeDescriptor, error) {
return ds.firstRangeProvider.GetFirstRangeDescriptor()
}

// NodeDialer returns a Dialer.
func (ds *DistSender) NodeDialer() *nodedialer.Dialer {
return ds.nodeDialer
}

// getNodeID attempts to return the local node ID. It returns 0 if the DistSender
// does not have access to the Gossip network.
func (ds *DistSender) getNodeID() roachpb.NodeID {
Expand Down
Loading

0 comments on commit d92373b

Please sign in to comment.