aerospike_native 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/aerospike_native/client.c +13 -0
- data/ext/aerospike_native/operation.c +3 -0
- data/lib/aerospike_native/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61a277355cea7b57701e87d449cc21d05d933f17
|
4
|
+
data.tar.gz: b7e0a9780c63ac5b07ab380da0cfbadef654bbe5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16f5e09b60d5e74ab9a4438575f38c00953d728e147f96d7b6d8726a59dc8b597e6fb506a7e5fba68061d8a4567c66157f9e753765f5e8f218148a1c7fd1c580
|
7
|
+
data.tar.gz: 1662b1718efc07a1c93859a734f5e114dddfb9def810a306a78485acdaf4d1c16ac53f2ed9f6953bc66d8a9f5f4d896ec1207bc563b85f6a0a3e21e61b92110e
|
@@ -135,13 +135,26 @@ VALUE client_operate(int argc, VALUE* argv, VALUE vSelf)
|
|
135
135
|
|
136
136
|
switch( op_type ) {
|
137
137
|
case WRITE:
|
138
|
+
printf("write\n");
|
139
|
+
as_operations_add_write_int64(&ops, StringValueCStr( bin_name ), NUM2INT( bin_value ));
|
140
|
+
// switch( TYPE(bin_value) ) {
|
141
|
+
// case T_STRING:
|
142
|
+
// as_operations_add_write_str(&ops, StringValueCStr( bin_name ), StringValueCStr( bin_value ));
|
143
|
+
// break;
|
144
|
+
// case T_FIXNUM:
|
145
|
+
// as_operations_add_write_int64(&ops, StringValueCStr( bin_name ), NUM2INT( bin_value ));
|
146
|
+
// break;
|
147
|
+
// }
|
148
|
+
|
138
149
|
break;
|
139
150
|
case INCREMENT:
|
151
|
+
printf("increment\n");
|
140
152
|
as_operations_add_incr(&ops, StringValueCStr( bin_name ), NUM2INT( bin_value ));
|
141
153
|
break;
|
142
154
|
}
|
143
155
|
}
|
144
156
|
|
157
|
+
printf("test\n");
|
145
158
|
printf("prepare key\n");
|
146
159
|
|
147
160
|
vNamespace = rb_iv_get(vKey, "@namespace");
|
@@ -26,6 +26,9 @@ VALUE operation_write(VALUE vSelf, VALUE vBinName, VALUE vBinValue)
|
|
26
26
|
VALUE operation_increment(VALUE vSelf, VALUE vBinName, VALUE vBinValue)
|
27
27
|
{
|
28
28
|
VALUE vArgs[3];
|
29
|
+
|
30
|
+
Check_Type(vBinValue, T_FIXNUM);
|
31
|
+
|
29
32
|
vArgs[0] = INT2NUM(INCREMENT);
|
30
33
|
vArgs[1] = vBinName;
|
31
34
|
vArgs[2] = vBinValue;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aerospike_native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Ziablitskii
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|