Skip to content

Commit 7c0ed06

Browse files
authored
Merge pull request #21 from RedisLabs/elad-ash-patch-1
Fix missing closing of JSON nesting for results printing
2 parents 6bd7228 + b2452f4 commit 7c0ed06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,5 +1593,10 @@ void run_stats::print(FILE *out, bool histogram, const char * header/*=NULL*/,
15931593
}
15941594
if (jsonhandler != NULL){ jsonhandler->close_nesting();}
15951595
}
1596+
// This close_nesting closes either:
1597+
// jsonhandler->open_nesting(header); or
1598+
// jsonhandler->open_nesting("UNKNOWN STATS");
1599+
// From the top (beginning of function).
1600+
if (jsonhandler != NULL){ jsonhandler->close_nesting();}
15961601
}
15971602

0 commit comments

Comments
 (0)