forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admin: fix nil panic when retrieving metric metadata
Previously, the code that retrieved metric metadata assumed that the underlying node would have at least a single store configured in the `MetricRecorder` instance. This is not true on a SQL tenant since the storage node abstracts away all store-related information. The code now checks to make sure that at least one store is found before moving ahead with retrieving store metric metadata. Epic: CRDB-12100 Release note: None
- Loading branch information
1 parent
10ef5d9
commit 9c114e2
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters