summaryrefslogtreecommitdiff
path: root/internal/clients
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-09-12 19:04:42 +0300
committerPaul Buetow <paul@buetow.org>2021-10-02 12:26:29 +0300
commit62bf0b0e9c2d5420349ad9c365d9484fc0a1c46b (patch)
tree2ae6d11a3cbc82152085a9d7755adef436b3ce46 /internal/clients
parent49a83f79e1b71c12b8efb7d0d106818b2541d77d (diff)
bugfix: dmap skipped the last couple of mapreduce lines
Diffstat (limited to 'internal/clients')
-rw-r--r--internal/clients/maprclient.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/clients/maprclient.go b/internal/clients/maprclient.go
index 2cad15d..68352ea 100644
--- a/internal/clients/maprclient.go
+++ b/internal/clients/maprclient.go
@@ -158,7 +158,8 @@ func (c *MaprClient) reportResults() {
func (c *MaprClient) printResults() {
var result string
var err error
- var numRows, rowsLimit int
+ var numRows int
+ rowsLimit := -1
if c.query.Limit == -1 {
// Limit output to 10 rows when the result is printed to stdout.