Skip to content

Commit 7ba68e0

Browse files
steadmongitster
authored andcommitted
docs: fix api-trace2 doc for "too_many_files" event
In 87db61a (trace2: write discard message to sentinel files, 2019-10-04), we added a new "too_many_files" event for when trace2 logging would create too many files in an output directory. Unfortunately, the api-trace2 doc described a "discard" event instead. Fix the doc to use the correct event name. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 87db61a commit 7ba68e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/technical/api-trace2.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,14 +621,14 @@ only present on the "start" and "atexit" events.
621621
}
622622
------------
623623

624-
`"discard"`::
624+
`"too_many_files"`::
625625
This event is written to the git-trace2-discard sentinel file if there
626626
are too many files in the target trace directory (see the
627627
trace2.maxFiles config option).
628628
+
629629
------------
630630
{
631-
"event":"discard",
631+
"event":"too_many_files",
632632
...
633633
}
634634
------------

0 commit comments

Comments
 (0)