Tao He
9a5267286b
Use a explicit copy constructor as we noticed stack-buffer-overflow inside the copy ctor when ASAN is enabled
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-24 10:30:10 +08:00
Tao He
ffb489ba4b
Bump up the version number to v0.2.5
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-21 18:53:39 +08:00
Tao He
bd4ec37ff4
Use int64_t for etcd revisions/indexes.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-21 18:52:34 +08:00
Tao He
9a2b753e9e
Bump up version to v0.2.4.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-08 21:26:55 +08:00
Tao He
680e8ad5c6
Replace Tabs in sources and README with spaces.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-08 20:49:56 +08:00
Tao He
56c7189f92
Revisit the watcher's reconnect functionality.
...
Address #73 , #76 , #117 and #118 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-08 19:55:31 +08:00
Tao He
f70255c8b0
Revert "Add support to re-activate watcher from wait_callback in watcher async wait."
...
This reverts commit 0467c0eef3 .
2022-04-08 19:55:31 +08:00
Tao He
9a2afd4e81
Revert "Update Watcher re-connection sample."
...
This reverts commit 23394ab9bb .
2022-04-08 19:55:31 +08:00
Tao He
d4975f84b3
Return complete meta information of HEAD. ( #123 )
...
* Return complete meta information of HEAD.
* Fixes the CI by revisiting the LD_LIBRARY_PATH.
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-04-06 16:01:49 +08:00
Tao He
767f0b1c65
Test against centos latest. ( #121 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2022-03-30 09:22:18 +08:00
David Pastor
23394ab9bb
Update Watcher re-connection sample.
2022-03-29 19:39:04 +08:00
David Pastor
0467c0eef3
Add support to re-activate watcher from wait_callback in watcher async wait.
...
Returns wait result when cancelling watcher.
2022-03-29 19:39:04 +08:00
Siyuan Zhang
82f632de11
Bump cmake mininum required version to 3.3 ( #114 )
...
Signed-off-by: siyuan0322 <siyuan0322@gmail.com>
2022-01-05 19:41:07 +08:00
Tao He
1575c5b43a
Fixes warnings and -Werror errors on Mac with the latest grpc. ( #112 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-28 13:28:56 +08:00
Tao He
bad5f6ea72
Deb: no debug.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-23 19:16:03 +08:00
Tao He
5ad96e21f9
Build the deb package and upload to artifacts. ( #111 )
...
* Build the deb package and upload to artifacts.
* Cancel.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-23 19:13:02 +08:00
Tao He
99ea53cb79
Bump up version to v0.2.3.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 14:32:20 +08:00
Tao He
345380a83a
Allow specifying the auth token TTL when auth with password. ( #109 )
...
* Allow specifying the auth token TTL when auth with password.
* Fixes.
Resolves #107 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 14:30:45 +08:00
Tao He
405383c0ba
Add a new API to `client.observe()` that accepts a callback.
...
Resolves #108 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 10:30:46 +08:00
Tao He
6a0b6696e5
Fixes the hardcode language standard in CMakeLists.txt.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-12-22 10:16:38 +08:00
Tao He
8678cec1f7
Bump up version to v0.2.2.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-11-14 21:23:41 +08:00
Tao He
0d672ffa1c
Accept an `grpc::ChannelArguments` argument in client's constructors. ( #104 )
...
* Accept an `grpc::ChannelArguments` argument in client's constructors.
Resolves #103 .
* Backwards compatibility with Ubuntu 18.04.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-11-09 00:31:59 +08:00
Matthew Fioravante
bfb56be151
Expose key version in etcd::Value ( #97 )
2021-10-27 12:49:34 +08:00
Matthew Fioravante
1118222b3d
Make revision numbers 64 bit to match proto spec ( #96 )
...
* Make Response::index() 64 bit
* make compact_revision 64 bit
* Make input revision params 64 bit
* make Transaction mod revision 64 bit
* Make Value created and modified index 64 bit
* Fix tests
2021-10-27 10:51:49 +08:00
Tao He
d29e05545d
Implements the put action.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-10-12 10:17:25 +08:00
Matthew Fioravante
e9db91b335
Allow changing Transaction key ( #93 )
...
* Allow changing Transaction key
* Fixes the compilation errors.
Signed-off-by: Matthew Fioravante <fmatthew5876@gmail.com>
Co-authored-by: Tao He <sighingnow@gmail.com>
2021-10-08 11:12:35 +08:00
Tao He
b99dc2024e
Include compact revision for cancelled watch response. ( #91 )
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-28 11:24:11 +08:00
Tao He
a949dec288
Add an optional `target_name_override` to support multiple-endpoints with SSL. ( #89 )
...
Resolves #87 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-24 02:41:46 +08:00
Tao He
6eed82a766
Fixes memory leak in shutting down gRPC streams. ( #88 )
...
* Fixes memory leak in shutting down gRPC streams.
Resolve #86 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-23 14:51:29 +08:00
mszy
d386bb96b0
Removing memory-leak, fixes #83 . ( #85 )
...
Co-authored-by: morgan.szygenda <morgan.szygenda@scle.fr>
2021-09-22 10:50:33 +08:00
Tao He
cda80854eb
Implements "v3election.proto" APIs. ( #84 )
...
Resolves #81 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-16 00:46:21 +08:00
Tao He
116b49b784
Lint source code, improve the quality and readability. ( #82 )
...
* Lint the source first, prepare for implementing #81 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-09-15 14:59:55 +08:00
Tao He
42c2fdf58c
Ugrade vcpkg sources.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-08-24 00:13:10 +08:00
Tao He
1b68f9c79d
Fixes for #80 and #79 , should set `CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS` instead.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-08-24 00:10:11 +08:00
Tao He
0e4934523e
MSVC: export all global symbols by default. ( #80 )
...
Resolves #79 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-08-23 23:33:29 +08:00
Tao He
a69638409c
The target protobuf::protoc exists since cmake 3.10.
...
Fixes for cmake version later than v3.10, e.g., cmake 3.9.
See also upstream patch:
c281acf807
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-08-04 11:27:56 +08:00
Tao He
891dc7bedf
Revisit docs about how could we "reconnect" when failure.
...
See also:
https://github.com/etcd-cpp-apiv3/etcd-cpp-apiv3/issues/73#issuecomment-888150328
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-07-28 17:57:33 +08:00
Tao He
3d4fa143e0
Set `etcd-cpp-api_FOUND`, fixes #77 .
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-07-16 00:56:49 +08:00
Yue
2338a83fd5
Add a brief doc and sample code describing how a watcher can re-connect to etcd server after disconnected. ( #76 )
2021-07-15 23:55:01 +08:00
Tao He
7559258b87
Update vcpkg configs, fixes #72 .
...
Resolves microsoft/vcpkg#18901 as well.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-07-13 00:53:05 +08:00
Tao He
0dc89e4c1e
Add openssl/libssl-dev to requirements.
...
Resolves #71 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-07-01 18:00:26 +08:00
Yue
6704b9373f
Minor update for vcpkg portfile so that the port can be installed on macOS. And update the portfile to use the latest release v0.2.1. ( #69 )
2021-06-20 16:10:08 +08:00
Tao He
efcecb7731
Add a "head" method on the client the retrieve the latest revision.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-06-16 17:10:32 +08:00
Tao He
68c5626d2c
Keepalive: join the thread outside the background job itself.
...
Fixes #67 , when etcd server stops, the keepalive action will crash.
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-06-15 12:03:35 +08:00
Tao He
b3a193c75e
Fixes several typos in REAEMD.
...
Fixes #63 .
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-06-01 17:27:20 +08:00
Tao He
230ebfd08b
Avoid duplicate const string tags. ( #62 )
...
On behalf of Asplund, Rickard, thanks!
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-28 23:22:32 +08:00
Tao He
46f36dac6d
Fixes a typo in example code in README.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-28 14:34:08 +08:00
Tao He
9d794504aa
Drop unused log message.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-28 10:09:41 +08:00
Tao He
4dda2db5a1
Compatible with older version of gRPC.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-27 23:13:04 +08:00
Tao He
e80709418b
Avoid including protobuf & grpc headers in our interface files.
...
Signed-off-by: Tao He <sighingnow@gmail.com>
2021-05-27 22:10:24 +08:00