Skip to content

Commit 1a22089

Browse files
committed
[dbfill] flush stdout for progress output
Flush the progress written to stdout for every 1k documents stored Change-Id: Id09e61ed8497e53ec94cce7145b40ab6b9d0f357 Reviewed-on: https://review.couchbase.org/c/kv_engine/+/223990 Tested-by: Build Bot <[email protected]> Reviewed-by: Dan Owen <[email protected]>
1 parent 63d830d commit 1a22089

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

programs/dbfill/dbfill.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ int main(int argc, char** argv) {
373373
auto [node, vb] = node_locator->lookup(key);
374374
node.enque(std::move(key), vb);
375375
if ((ii % 1000) == 0) {
376-
fmt::print("\rQueued: {}", ii);
376+
fmt::print(stdout, "\rQueued: {}", ii);
377+
fflush(stdout);
377378
}
378379
}
379380

0 commit comments

Comments
 (0)