From 53ff3ddb3cb60375076afa633b64ac171d225770 Mon Sep 17 00:00:00 2001 From: Daniel Mai Date: Fri, 25 Jun 2021 10:53:28 -0700 Subject: [PATCH] fix(cmd/debug): Print banned namespaces correctly. Earlier we were showing the opposite status: unbanned namespaces were shown as banned. This change fixes that. (cherry picked from commit 43a1bd0b09f157144a075ab872c7faae4b28abb4) --- dgraph/cmd/debug/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dgraph/cmd/debug/run.go b/dgraph/cmd/debug/run.go index 7cd79ce06ce..32a621b7931 100644 --- a/dgraph/cmd/debug/run.go +++ b/dgraph/cmd/debug/run.go @@ -835,7 +835,7 @@ func printSummary(db *badger.DB) { fmt.Println() for ns, sz := range nsSize { fmt.Printf("Namespace %#x size: %12s", ns, humanize.IBytes(sz)) - if _, ok := bannedNs[ns]; !ok { + if _, ok := bannedNs[ns]; ok { fmt.Printf(" (banned)") } fmt.Println()