diff options
Diffstat (limited to 'mongostat/mongostat.go')
-rw-r--r-- | mongostat/mongostat.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mongostat/mongostat.go b/mongostat/mongostat.go index a8958c14495..5f9a006c71d 100644 --- a/mongostat/mongostat.go +++ b/mongostat/mongostat.go @@ -131,12 +131,14 @@ func (cluster *SyncClusterMonitor) Monitor(maxRows int, done chan error, sleep t go func() { rowCount := 0 warned := false + hasData := false for { newStat := <-cluster.ReportChan - if newStat.Error != nil { + if newStat.Error != nil && !hasData { done <- newStat.Error return } + hasData = true //If this mongod is running a storage engine other than mmapv1, //print a warning about the non-applicable fields. |