From d484e9db4377a94f9d025e3e1f847b8530bc58a1 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 1 Apr 2019 10:35:20 -0400 Subject: [PATCH] Update log.py comment for accuracy The metadata format was out of date. --- confluent_server/confluent/log.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/confluent_server/confluent/log.py b/confluent_server/confluent/log.py index 6e74ca8e..dfb21b1b 100644 --- a/confluent_server/confluent/log.py +++ b/confluent_server/confluent/log.py @@ -51,11 +51,15 @@ # - leading bit reserved, 0 for now # - length of metadata record 7 bits # - type of data referenced by this entry (one byte), currently: -# 0=text event, 1=json, 2=console data +# 0=text event, 1=json, 2=console data, 3=event # - offset into the text log to begin (4 bytes) # - length of data referenced by this entry (2 bytes) -# - UTC timestamp of this entry in seconds since epoch (unsigned 32 bit?) -# - CRC32 over the record +# - UTC timestamp of this entry in seconds since epoch (unsigned 32 bit) +# - Event type (per 'Events' class below) +# - Event data (per event, currently used by connect/disconnect to represent +# single or multiple connections by user and for 'appmode' and 'shiftin' +# status for console +# - 2 reserved bytes # (a future extended version might include suport for Forward Secure Sealing # or other fields)