xichen01 commented on code in PR #6420:
URL: https://github.com/apache/ozone/pull/6420#discussion_r1590617883
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/debug/DBScanner.java:
##########
@@ -305,7 +335,7 @@ private void processRecords(ManagedRocksIterator iterator,
}
private boolean withinLimit(long i) {
- return limit == -1L || i < limit;
+ return recordsPerFile > 0 || limit == -1L || i < limit;
Review Comment:
The `--limit` is used to limit the total count of records, the
`--max-records-per-file` is used to limit the max records count of specific
file.
Such as:
` ozone debug ldb ... --limit 10 --max-records-per-file 1 --out result.txt`
This command should generate 10 files, like result.txt0, result.txt1, ...,
and each of them has 1 record.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]