Commit d66963e2 authored by Vihang Mehta's avatar Vihang Mehta
Browse files

Make sure prefix selectors have trailing slashes

Summary:
Wihout the trailing slash, `/tracepoint` matches `/tracepointName` etc.
This is problematic when we need to get all tracepoints etc.

Test Plan: Getting tracepoint status should work on dev deploy

Reviewers: michelle, #engineering

Reviewed By: michelle, #engineering

Differential Revision: https://phab.corp.pixielabs.ai/D7357

GitOrigin-RevId: b70c27d8605968ca499ba15d7bc1ecabaad64d10
parent 12714570
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -15,10 +15,10 @@ import (
)
const (
tracepointsPrefix = "/tracepoint"
tracepointStatesPrefix = "/tracepointStates"
tracepointTTLsPrefix = "/tracepointTTL"
tracepointNamesPrefix = "/tracepointName"
tracepointsPrefix = "/tracepoint/"
tracepointStatesPrefix = "/tracepointStates/"
tracepointTTLsPrefix = "/tracepointTTL/"
tracepointNamesPrefix = "/tracepointName/"
)
// TracepointDatastore implements the TracepointStore interface on a given Datastore.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment