Skip to content

Commit

Permalink
Merge #44670
Browse files Browse the repository at this point in the history
44670: keys: fix key constants enumeration r=nvanbenschoten a=nvanbenschoten

A few of the comments were inconsistent and the section number was off.

Co-authored-by: Nathan VanBenschoten <[email protected]>
  • Loading branch information
craig[bot] and nvanbenschoten committed Feb 4, 2020
2 parents 9bf1af0 + 5b3edde commit 50b12ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/keys/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (

// There are four types of local key data enumerated below: replicated
// range-ID, unreplicated range-ID, range local, and store-local keys.
//

// 1. Replicated Range-ID keys
//
// LocalRangeIDPrefix is the prefix identifying per-range data
Expand Down Expand Up @@ -210,7 +210,7 @@ var (
// The value is a RangeDescriptor struct.
Meta2KeyMax = roachpb.Key(makeKey(Meta2Prefix, roachpb.RKeyMax))

// 1. System keys
// 2. System keys
//
// SystemPrefix indicates the beginning of the key range for
// global, system data which are replicated across the cluster.
Expand All @@ -229,18 +229,18 @@ var (
// BootstrapVersion is the key at which clusters bootstrapped with a version
// > 1.0 persist the version at which they were bootstrapped.
BootstrapVersionKey = roachpb.Key(makeKey(SystemPrefix, roachpb.RKey("bootstrap-version")))
//
// DescIDGenerator is the global descriptor ID generator sequence used for
// table and namespace IDs.
//
DescIDGenerator = roachpb.Key(makeKey(SystemPrefix, roachpb.RKey("desc-idgen")))
// NodeIDGenerator is the global node ID generator sequence.
NodeIDGenerator = roachpb.Key(makeKey(SystemPrefix, roachpb.RKey("node-idgen")))
// RangeIDGenerator is the global range ID generator sequence.
RangeIDGenerator = roachpb.Key(makeKey(SystemPrefix, roachpb.RKey("range-idgen")))
// StoreIDGenerator is the global store ID generator sequence.
StoreIDGenerator = roachpb.Key(makeKey(SystemPrefix, roachpb.RKey("store-idgen")))
// StatusPrefix specifies the key prefix to store all status details.
//
// StatusPrefix specifies the key prefix to store all status details.
StatusPrefix = roachpb.Key(makeKey(SystemPrefix, roachpb.RKey("status-")))
// StatusNodePrefix stores all status info for nodes.
StatusNodePrefix = roachpb.Key(makeKey(StatusPrefix, roachpb.RKey("node-")))
Expand Down

0 comments on commit 50b12ad

Please sign in to comment.