memcache 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION.yml +1 -1
- data/ext/native_server.c +1 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -63,8 +63,8 @@ namespace :test do
|
|
63
63
|
Rake::TestTask.new(:native) do |t|
|
64
64
|
`cd ext && make && cp native_server.bundle native_server.o ../lib/memcache/`
|
65
65
|
t.libs << 'test'
|
66
|
-
t.pattern = 'test/
|
66
|
+
t.pattern = 'test/memcache_*native_server_test.rb'
|
67
67
|
t.verbose
|
68
68
|
end
|
69
69
|
end
|
70
|
-
|
70
|
+
|
data/VERSION.yml
CHANGED
data/ext/native_server.c
CHANGED
@@ -269,6 +269,7 @@ static VALUE mc_get(int argc, VALUE *argv, VALUE self) {
|
|
269
269
|
rb_ivar_set(value, iv_memcache_flags, INT2NUM(memcached_result_flags(&result)));
|
270
270
|
if (RTEST(cas)) rb_ivar_set(value, iv_memcache_cas, ULL2NUM(memcached_result_cas(&result)));
|
271
271
|
memcached_result_free(&result);
|
272
|
+
memcached_result_create(mc, &result);
|
272
273
|
rb_hash_aset(results, key, value);
|
273
274
|
} else {
|
274
275
|
printf("Memcache read error: %s %u\n", memcached_strerror(mc, status), status);
|