summaryrefslogtreecommitdiffstats
path: root/trace2/tr2_dst.h
diff options
context:
space:
mode:
authorJosh Steadmon <steadmon@google.com>2019-10-05 00:08:21 +0200
committerJunio C Hamano <gitster@pobox.com>2019-10-05 10:53:51 +0200
commit87db61a4363ad9f42cf7b0d90ad13763dc01e3af (patch)
treee36e7c4db2607543164f8e543bb9e90e12c7aeb6 /trace2/tr2_dst.h
parenttrace2: discard new traces if target directory has too many files (diff)
downloadgit-87db61a4363ad9f42cf7b0d90ad13763dc01e3af.tar.xz
git-87db61a4363ad9f42cf7b0d90ad13763dc01e3af.zip
trace2: write discard message to sentinel files
Add a new "discard" event type for trace2 event destinations. When the trace2 file count check creates a sentinel file, it will include the normal trace2 output in the sentinel, along with this new discard event. Writing this message into the sentinel file is useful for tracking how often the file count check triggers in practice. Bump up the event format version since we've added a new event type. Signed-off-by: Josh Steadmon <steadmon@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_dst.h')
-rw-r--r--trace2/tr2_dst.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trace2/tr2_dst.h b/trace2/tr2_dst.h
index 3adf3bac13..b1a8c144e0 100644
--- a/trace2/tr2_dst.h
+++ b/trace2/tr2_dst.h
@@ -9,6 +9,7 @@ struct tr2_dst {
int fd;
unsigned int initialized : 1;
unsigned int need_close : 1;
+ unsigned int too_many_files : 1;
};
/*