Skip to content

Commit

Permalink
Deprecate unused ns_server stat "num_pindexes"
Browse files Browse the repository at this point in the history
Change-Id: I3a7c2ad1e56f170e7486629dafd023e3a2fd8804
Reviewed-on: http://review.couchbase.org/113306
Well-Formed: Build Bot <build@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Abhinav Dangeti <abhinav@couchbase.com>
  • Loading branch information
abhinavdangeti committed Aug 14, 2019
1 parent f3ffcab commit 5df8b92
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ns_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ func (n NSIndexStats) MarshalJSON() ([]byte, error) {
}

var statkeys = []string{
// manual
"num_pindexes",

// pindex
"doc_count",
"timer_batch_store_count",
Expand Down Expand Up @@ -343,11 +340,7 @@ func (h *NsStatsHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
switch oldValue := oldValue.(type) {
case float64:
oldValue += float64(1)

nsIndexStat["num_pindexes_actual"] = oldValue

// TODO: Former name was num_pindexes, need to remove one day.
nsIndexStat["num_pindexes"] = oldValue
}
}

Expand Down

0 comments on commit 5df8b92

Please sign in to comment.