Skip to content

Commit

Permalink
Merge #57709
Browse files Browse the repository at this point in the history
57709: sql,kv: add compact_engine_span for internal use r=sumeerbhola a=sumeerbhola

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


Co-authored-by: sumeerbhola <[email protected]>
  • Loading branch information
craig[bot] and sumeerbhola committed Dec 24, 2020
2 parents f0c7d6e + 40029d1 commit 7e604ec
Show file tree
Hide file tree
Showing 14 changed files with 596 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 7e604ec

Please sign in to comment.