Skip to content

Conversation

ato
Copy link
Member

@ato ato commented Feb 12, 2021

Set Capture.length to -1 when value is unavailable (to differentiate from the - unlikely - case of an empty file in the index). Adjust query responses to use a dash rather than a a zero when it isn't present.

We also fix VarInt's encoding of negative longs by using an unsigned comparison.

CC: @kris-sigur

ato and others added 3 commits February 12, 2021 19:44
Negative longs will produce 10-byte VarInts but this mainly to support
-1 anyway which should be compressed by RocksDB.
Set Capture.length to -1 when value is unavailable (to differentiate
from the - unlikely - case of an empty file in the index). Adjust query
responses to use a dash rather than a a zero when it isn't present.
@ato ato merged commit 31662d7 into master Feb 12, 2021
@ato ato deleted the no-compressed-size branch February 12, 2021 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant