Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(181)

Issue 156040043: rough and simplistic etcd client (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by Pierre Phaneuf (Google)
Modified:
10 years, 2 months ago
CC:
ctlog-opensource-review_google.com
Visibility:
Public.

Description

rough and simplistic etcd client

Patch Set 1 #

Patch Set 2 : fix a missing header problem on Travis #

Total comments: 8

Patch Set 3 : address comments #

Patch Set 4 : more comments addressed and other improvements #

Patch Set 5 : include stdint.h for uint16_t #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -2 lines) Patch
M .gitignore View 1 chunk +1 line, -0 lines 0 comments Download
M cpp/Makefile View 1 2 3 3 chunks +7 lines, -2 lines 0 comments Download
A cpp/util/bench_etcd.cc View 1 chunk +101 lines, -0 lines 0 comments Download
A cpp/util/etcd.h View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download
A cpp/util/etcd.cc View 1 2 3 1 chunk +224 lines, -0 lines 0 comments Download

Messages

Total messages: 6
Pierre Phaneuf (Google)
See also: https://github.com/google/certificate-transparency/pull/175
10 years, 2 months ago (2014-10-09 16:58:23 UTC) #1
Ben Laurie (Google)
https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc File cpp/util/etcd.cc (right): https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc#newcode40 cpp/util/etcd.cc:40: class EtcdClientImpl : public EtcdClient { Why is this ...
10 years, 2 months ago (2014-10-10 10:58:06 UTC) #2
Pierre Phaneuf (Google)
https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc File cpp/util/etcd.cc (right): https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc#newcode40 cpp/util/etcd.cc:40: class EtcdClientImpl : public EtcdClient { On 2014/10/10 10:58:06, ...
10 years, 2 months ago (2014-10-10 11:10:51 UTC) #3
Ben Laurie (Google)
LGTM. https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc File cpp/util/etcd.cc (right): https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc#newcode55 cpp/util/etcd.cc:55: typedef map<pair<string, unsigned short>, On 2014/10/10 11:10:51, Pierre ...
10 years, 2 months ago (2014-10-10 11:31:15 UTC) #4
Pierre Phaneuf (Google)
On 2014/10/10 11:31:15, Ben Laurie (Google) wrote: > LGTM. > > https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc > File cpp/util/etcd.cc ...
10 years, 2 months ago (2014-10-10 11:59:03 UTC) #5
Ben Laurie (Google)
10 years, 2 months ago (2014-10-16 15:23:41 UTC) #6
On Fri Oct 10 2014 at 12:59:03 PM <pphaneuf@google.com> wrote:

> On 2014/10/10 11:31:15, Ben Laurie (Google) wrote:
> > LGTM.
>
> > https://codereview.appspot.com/156040043/diff/20001/cpp/util/etcd.cc
> > File cpp/util/etcd.cc (right):
>
>
> https://codereview.appspot.com/156040043/diff/20001/cpp/
> util/etcd.cc#newcode55
> > cpp/util/etcd.cc:55: typedef map<pair<string, unsigned short>,
> > On 2014/10/10 11:10:51, Pierre Phaneuf (Google) wrote:
> > > On 2014/10/10 10:58:06, Ben Laurie (Google) wrote:
> > > > Throughout, you mean uint16_t, not unsigned short, right?
> > >
> > > I lifted the type that libevent's evhttp_connection_base_new takes
> directly. I
> > > can switch this file to uint16_t, sure.
>
> > File a bug against libevent (coz it is a bug).
>
> Interesting, I thought it was still "unsigned short", but my
> /usr/include/net/in.h indeed uses uint16_t (through an in_port_t
> typedef)... On Mac, it's __uint16_t, but pretty much the same. I'm not
> 100% sure on how unsigned short is a bug ("that's what I grew up
> with!"),


OK, I guess whether its a bug could be debated - ports are 16 bits, shorts
are 16 bits or more. Forcing people to burn more storage than they need to
seems like a bug to me.


> and there might be API backward compatibility issues, but I'll
> point this out to them.
>
> I'm guessing that's what OpenBSD still uses, you know Niels... ;-)
>
> https://codereview.appspot.com/156040043/
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b