zookeeper 1.4.8-java → 1.4.9-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/CHANGELOG +4 -0
- data/ext/patches/zkc-3.4.5-yosemite-htonl-fix.patch +102 -0
- data/lib/zookeeper/version.rb +1 -1
- metadata +6 -11
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
MzdjNmI0ZTBiZmQzOTRkYTRlZjEzZThmZWU2ZDZjYzY1NjA5ZDYzZg==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
YjA1NTJjN2IxOTQxNDExNTdkMmI0NjY0YjFiMDAzNjI5YzIwNmUyZA==
|
|
7
|
+
SHA512:
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
NzIwODQyNTMwN2VjZWY4ZGRmZDk3MTA3YWNlMDQwZjUwYzI5YjZjNjIzZTM5
|
|
10
|
+
MjcwMGIyYjk1Y2Q3ZTVkYWI4ODQ4ZTM3NDA5ZTExYTZhMzU4ZDE3N2E3ZGRj
|
|
11
|
+
ODg1YThiNDNkZGNjY2RjZDRjNjg2Njg1N2MyMDg0MGE3YmZjZWU=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
N2M1MjVkZmMwYzAxYjljOTJiMGU5ODNiZTJjZmVmZjJjNmJmMGE5OGIxYTM5
|
|
14
|
+
MTllZjEzNTRiZGJkMjdiZTFkNTI2MzIwMzg1YmMwZjY4NDBhYzUxYWMyOTU2
|
|
15
|
+
MDJmZTM0MTVhZTM1NTYxNTIwNWQwNWQ5NDYxNTg4MGUzYzBmOTk=
|
data/CHANGELOG
CHANGED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
diff -ur zkc-3.4.5-orig/c/include/recordio.h zkc-3.4.5/c/include/recordio.h
|
|
2
|
+
--- zkc-3.4.5-orig/c/include/recordio.h 2012-09-30 13:53:32.000000000 -0400
|
|
3
|
+
+++ zkc-3.4.5/c/include/recordio.h 2014-07-29 03:13:27.000000000 -0400
|
|
4
|
+
@@ -73,7 +73,7 @@
|
|
5
|
+
char *get_buffer(struct oarchive *);
|
|
6
|
+
int get_buffer_len(struct oarchive *);
|
|
7
|
+
|
|
8
|
+
-int64_t htonll(int64_t v);
|
|
9
|
+
+int64_t zk_htonll(int64_t v);
|
|
10
|
+
|
|
11
|
+
#ifdef __cplusplus
|
|
12
|
+
}
|
|
13
|
+
diff -ur zkc-3.4.5-orig/c/src/recordio.c zkc-3.4.5/c/src/recordio.c
|
|
14
|
+
--- zkc-3.4.5-orig/c/src/recordio.c 2012-09-30 13:53:32.000000000 -0400
|
|
15
|
+
+++ zkc-3.4.5/c/src/recordio.c 2014-07-29 03:13:35.000000000 -0400
|
|
16
|
+
@@ -80,7 +80,7 @@
|
|
17
|
+
priv->off+=sizeof(i);
|
|
18
|
+
return 0;
|
|
19
|
+
}
|
|
20
|
+
-int64_t htonll(int64_t v)
|
|
21
|
+
+int64_t zk_htonll(int64_t v)
|
|
22
|
+
{
|
|
23
|
+
int i = 0;
|
|
24
|
+
char *s = (char *)&v;
|
|
25
|
+
@@ -98,7 +98,7 @@
|
|
26
|
+
|
|
27
|
+
int oa_serialize_long(struct oarchive *oa, const char *tag, const int64_t *d)
|
|
28
|
+
{
|
|
29
|
+
- const int64_t i = htonll(*d);
|
|
30
|
+
+ const int64_t i = zk_htonll(*d);
|
|
31
|
+
struct buff_struct *priv = oa->priv;
|
|
32
|
+
if ((priv->len - priv->off) < sizeof(i)) {
|
|
33
|
+
int rc = resize_buffer(priv, priv->len + sizeof(i));
|
|
34
|
+
@@ -207,7 +207,7 @@
|
|
35
|
+
}
|
|
36
|
+
memcpy(count, priv->buffer+priv->off, sizeof(*count));
|
|
37
|
+
priv->off+=sizeof(*count);
|
|
38
|
+
- v = htonll(*count); // htonll and ntohll do the same
|
|
39
|
+
+ v = zk_htonll(*count); // zk_htonll and ntohll do the same
|
|
40
|
+
*count = v;
|
|
41
|
+
return 0;
|
|
42
|
+
}
|
|
43
|
+
diff -ur zkc-3.4.5-orig/c/src/zookeeper.c zkc-3.4.5/c/src/zookeeper.c
|
|
44
|
+
--- zkc-3.4.5-orig/c/src/zookeeper.c 2012-09-30 13:53:32.000000000 -0400
|
|
45
|
+
+++ zkc-3.4.5/c/src/zookeeper.c 2014-07-29 03:13:45.000000000 -0400
|
|
46
|
+
@@ -1408,7 +1408,7 @@
|
|
47
|
+
memcpy(buffer + offset, &req->protocolVersion, sizeof(req->protocolVersion));
|
|
48
|
+
offset = offset + sizeof(req->protocolVersion);
|
|
49
|
+
|
|
50
|
+
- req->lastZxidSeen = htonll(req->lastZxidSeen);
|
|
51
|
+
+ req->lastZxidSeen = zk_htonll(req->lastZxidSeen);
|
|
52
|
+
memcpy(buffer + offset, &req->lastZxidSeen, sizeof(req->lastZxidSeen));
|
|
53
|
+
offset = offset + sizeof(req->lastZxidSeen);
|
|
54
|
+
|
|
55
|
+
@@ -1416,7 +1416,7 @@
|
|
56
|
+
memcpy(buffer + offset, &req->timeOut, sizeof(req->timeOut));
|
|
57
|
+
offset = offset + sizeof(req->timeOut);
|
|
58
|
+
|
|
59
|
+
- req->sessionId = htonll(req->sessionId);
|
|
60
|
+
+ req->sessionId = zk_htonll(req->sessionId);
|
|
61
|
+
memcpy(buffer + offset, &req->sessionId, sizeof(req->sessionId));
|
|
62
|
+
offset = offset + sizeof(req->sessionId);
|
|
63
|
+
|
|
64
|
+
@@ -1447,7 +1447,7 @@
|
|
65
|
+
memcpy(&req->sessionId, buffer + offset, sizeof(req->sessionId));
|
|
66
|
+
offset = offset + sizeof(req->sessionId);
|
|
67
|
+
|
|
68
|
+
- req->sessionId = htonll(req->sessionId);
|
|
69
|
+
+ req->sessionId = zk_htonll(req->sessionId);
|
|
70
|
+
memcpy(&req->passwd_len, buffer + offset, sizeof(req->passwd_len));
|
|
71
|
+
offset = offset + sizeof(req->passwd_len);
|
|
72
|
+
|
|
73
|
+
diff -ur zkc-3.4.5-orig/c/tests/ZKMocks.cc zkc-3.4.5/c/tests/ZKMocks.cc
|
|
74
|
+
--- zkc-3.4.5-orig/c/tests/ZKMocks.cc 2012-09-30 13:53:32.000000000 -0400
|
|
75
|
+
+++ zkc-3.4.5/c/tests/ZKMocks.cc 2014-07-29 03:13:59.000000000 -0400
|
|
76
|
+
@@ -41,7 +41,7 @@
|
|
77
|
+
int offset=sizeof(req->protocolVersion);
|
|
78
|
+
|
|
79
|
+
memcpy(&req->lastZxidSeen,buf.data()+offset,sizeof(req->lastZxidSeen));
|
|
80
|
+
- req->lastZxidSeen = htonll(req->lastZxidSeen);
|
|
81
|
+
+ req->lastZxidSeen = zk_htonll(req->lastZxidSeen);
|
|
82
|
+
offset+=sizeof(req->lastZxidSeen);
|
|
83
|
+
|
|
84
|
+
memcpy(&req->timeOut,buf.data()+offset,sizeof(req->timeOut));
|
|
85
|
+
@@ -49,7 +49,7 @@
|
|
86
|
+
offset+=sizeof(req->timeOut);
|
|
87
|
+
|
|
88
|
+
memcpy(&req->sessionId,buf.data()+offset,sizeof(req->sessionId));
|
|
89
|
+
- req->sessionId = htonll(req->sessionId);
|
|
90
|
+
+ req->sessionId = zk_htonll(req->sessionId);
|
|
91
|
+
offset+=sizeof(req->sessionId);
|
|
92
|
+
|
|
93
|
+
memcpy(&req->passwd_len,buf.data()+offset,sizeof(req->passwd_len));
|
|
94
|
+
@@ -322,7 +322,7 @@
|
|
95
|
+
buf.append((char*)&tmp,sizeof(tmp));
|
|
96
|
+
tmp=htonl(timeOut);
|
|
97
|
+
buf.append((char*)&tmp,sizeof(tmp));
|
|
98
|
+
- int64_t tmp64=htonll(sessionId);
|
|
99
|
+
+ int64_t tmp64=zk_htonll(sessionId);
|
|
100
|
+
buf.append((char*)&tmp64,sizeof(sessionId));
|
|
101
|
+
tmp=htonl(passwd_len);
|
|
102
|
+
buf.append((char*)&tmp,sizeof(tmp));
|
data/lib/zookeeper/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zookeeper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.4.9
|
|
6
5
|
platform: java
|
|
7
6
|
authors:
|
|
8
7
|
- Phillip Pearson
|
|
@@ -14,12 +13,11 @@ authors:
|
|
|
14
13
|
autorequire:
|
|
15
14
|
bindir: bin
|
|
16
15
|
cert_chain: []
|
|
17
|
-
date: 2014-
|
|
16
|
+
date: 2014-08-25 00:00:00.000000000 Z
|
|
18
17
|
dependencies:
|
|
19
18
|
- !ruby/object:Gem::Dependency
|
|
20
19
|
name: slyphon-log4j
|
|
21
20
|
requirement: !ruby/object:Gem::Requirement
|
|
22
|
-
none: false
|
|
23
21
|
requirements:
|
|
24
22
|
- - '='
|
|
25
23
|
- !ruby/object:Gem::Version
|
|
@@ -27,7 +25,6 @@ dependencies:
|
|
|
27
25
|
type: :runtime
|
|
28
26
|
prerelease: false
|
|
29
27
|
version_requirements: !ruby/object:Gem::Requirement
|
|
30
|
-
none: false
|
|
31
28
|
requirements:
|
|
32
29
|
- - '='
|
|
33
30
|
- !ruby/object:Gem::Version
|
|
@@ -35,7 +32,6 @@ dependencies:
|
|
|
35
32
|
- !ruby/object:Gem::Dependency
|
|
36
33
|
name: slyphon-zookeeper_jar
|
|
37
34
|
requirement: !ruby/object:Gem::Requirement
|
|
38
|
-
none: false
|
|
39
35
|
requirements:
|
|
40
36
|
- - '='
|
|
41
37
|
- !ruby/object:Gem::Version
|
|
@@ -43,7 +39,6 @@ dependencies:
|
|
|
43
39
|
type: :runtime
|
|
44
40
|
prerelease: false
|
|
45
41
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
|
-
none: false
|
|
47
42
|
requirements:
|
|
48
43
|
- - '='
|
|
49
44
|
- !ruby/object:Gem::Version
|
|
@@ -93,6 +88,7 @@ files:
|
|
|
93
88
|
- ext/generate_gvl_code.rb
|
|
94
89
|
- ext/patches/zkc-3.3.5-network.patch
|
|
95
90
|
- ext/patches/zkc-3.4.5-logging.patch
|
|
91
|
+
- ext/patches/zkc-3.4.5-yosemite-htonl-fix.patch
|
|
96
92
|
- ext/zkc-3.4.5.tar.gz
|
|
97
93
|
- ext/zkrb.c
|
|
98
94
|
- ext/zkrb_wrapper.c
|
|
@@ -147,28 +143,27 @@ files:
|
|
|
147
143
|
- zoomonkey/zoomonkey.rb
|
|
148
144
|
homepage: https://github.com/slyphon/zookeeper
|
|
149
145
|
licenses: []
|
|
146
|
+
metadata: {}
|
|
150
147
|
post_install_message:
|
|
151
148
|
rdoc_options: []
|
|
152
149
|
require_paths:
|
|
153
150
|
- lib
|
|
154
151
|
- java
|
|
155
152
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
|
-
none: false
|
|
157
153
|
requirements:
|
|
158
154
|
- - ! '>='
|
|
159
155
|
- !ruby/object:Gem::Version
|
|
160
156
|
version: '0'
|
|
161
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
|
-
none: false
|
|
163
158
|
requirements:
|
|
164
159
|
- - ! '>='
|
|
165
160
|
- !ruby/object:Gem::Version
|
|
166
161
|
version: '0'
|
|
167
162
|
requirements: []
|
|
168
163
|
rubyforge_project:
|
|
169
|
-
rubygems_version:
|
|
164
|
+
rubygems_version: 2.2.2
|
|
170
165
|
signing_key:
|
|
171
|
-
specification_version:
|
|
166
|
+
specification_version: 4
|
|
172
167
|
summary: Apache ZooKeeper driver for Rubies
|
|
173
168
|
test_files:
|
|
174
169
|
- spec/c_zookeeper_spec.rb
|