Hi Eric,

It seems like the length can never be zero or one, you can use the length
encoding that I outlined in the post below. The difference compared to the way
you handle the encoding is that it instead reserves the smallest lengths,
leaving the high range of length for representing an actual length.

http://mysqlmusings.blogspot.com/2008/08/missing-pieces-in-protobuf-binary-log.html

Just my few cents,
Mats Kindahl

Eric Day wrote:
> Hello!
> 
> I've put together a draft for the new Drizzle protocol here:
> 
> http://drizzle.wikia.com/wiki/New_Protocol
> 
> Please review and give feedback if you have time. This is not feature
> complete, but it gives the core functionality and lays the groundwork
> for a dynamic protocol that can easily be expanded. It has some roots
> of the existing MySQL protocol, but all fixed-size structures have
> been removed. Other features, such as check-sums, will most likely
> be pluggable and enabled through new parameters.
> 
> If you feel I've done something completely wrong, please tell me. :)
> I understand it may take a few drafts to get the right start. At the
> very least, this will get the ideas and discussion going.
> 
> -Eric
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp

-- 
Mats Kindahl
Lead Software Developer
Replication Team
MySQL AB, www.mysql.com
begin:vcard
fn:Mats Kindahl
n:Kindahl;Mats
org:Sun Microsystems
adr;quoted-printable:;;Tegv=C3=A4gen 3;Storvreta;SE;74334;Sweden
email;internet:[EMAIL PROTECTED]
title:Lead Replication Software Developer
x-mozilla-html:FALSE
version:2.1
end:vcard

_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to