line |
true |
false |
branch |
48
|
68 |
0 |
if ( !v || !SvOK(*v) ) |
|
0 |
68 |
if ( !v || !SvOK(*v) ) |
|
0 |
0 |
if ( !v || !SvOK(*v) ) |
|
0 |
0 |
if ( !v || !SvOK(*v) ) |
67
|
1 |
29 |
if (weight <= 0.0) |
70
|
29 |
0 |
host = SvPV(addr_sv, len); |
75
|
29 |
0 |
if (port) |
86
|
0 |
29 |
if (res != MEMCACHED_SUCCESS) |
95
|
15 |
18 |
if (! SvROK(sv)) |
111
|
14 |
1 |
if (addr_sv) |
112
|
0 |
14 |
SvGETMAGIC(*addr_sv); |
|
0 |
0 |
SvGETMAGIC(*addr_sv); |
116
|
14 |
0 |
if (ps) |
117
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
118
|
14 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
119
|
14 |
0 |
weight = SvNV(*ps); |
121
|
0 |
14 |
if (ps) |
122
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
|
0 |
0 |
noreply = SvTRUE(*ps); |
134
|
1 |
1 |
if (addr_sv) |
135
|
0 |
1 |
SvGETMAGIC(*addr_sv); |
|
0 |
0 |
SvGETMAGIC(*addr_sv); |
139
|
1 |
0 |
if (weight_sv) |
140
|
0 |
1 |
weight = SvNV(*weight_sv); |
164
|
14 |
3 |
if (ps) |
165
|
14 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
14 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
14 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
14 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
14 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
14 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
14 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
14 |
0 |
memd->utf8 = SvTRUE(*ps); |
|
0 |
0 |
memd->utf8 = SvTRUE(*ps); |
168
|
17 |
0 |
if (ps) |
169
|
0 |
17 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
170
|
17 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
17 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
177
|
0 |
17 |
if (! memd->serialize_method) |
180
|
0 |
17 |
if (! memd->deserialize_method) |
197
|
14 |
3 |
if (ps) |
198
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
199
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
200
|
14 |
0 |
memd->compress_threshold = SvIV(*ps); |
203
|
0 |
17 |
if (ps) |
204
|
0 |
0 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
205
|
0 |
17 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
206
|
0 |
0 |
memd->compress_ratio = SvNV(*ps); |
209
|
17 |
0 |
if (ps) |
210
|
0 |
17 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
211
|
17 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
17 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
217
|
0 |
0 |
else if (memd->compress_threshold > 0) |
235
|
14 |
7 |
if (ps) |
236
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
237
|
14 |
7 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
239
|
14 |
0 |
int res = client_set_ketama_points(c, SvIV(*ps)); |
240
|
0 |
14 |
if (res != MEMCACHED_SUCCESS) |
245
|
0 |
21 |
if (ps) |
246
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_hash_namespace(c, SvTRUE(*ps)); |
249
|
19 |
2 |
if (ps) |
250
|
0 |
19 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
251
|
19 |
2 |
if (ps && SvOK(*ps)) |
|
0 |
19 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
256
|
19 |
0 |
if (! SvROK(*ps) || SvTYPE(SvRV(*ps)) != SVt_PVAV) |
|
0 |
19 |
if (! SvROK(*ps) || SvTYPE(SvRV(*ps)) != SVt_PVAV) |
260
|
33 |
15 |
for (i = 0; i <= max_index; ++i) |
263
|
0 |
33 |
if (! ps) |
266
|
0 |
33 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
272
|
14 |
3 |
if (ps) |
273
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
274
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
278
|
14 |
0 |
ns = SvPV(*ps, len); |
279
|
0 |
14 |
if (client_set_prefix(c, ns, len) != MEMCACHED_SUCCESS) |
284
|
14 |
3 |
if (ps) |
285
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
286
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
287
|
0 |
14 |
client_set_connect_timeout(c, SvNV(*ps) * 1000.0); |
290
|
14 |
3 |
if (ps) |
291
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
292
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
293
|
0 |
14 |
client_set_io_timeout(c, SvNV(*ps) * 1000.0); |
297
|
14 |
3 |
if (ps) |
298
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
299
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
300
|
0 |
14 |
client_set_io_timeout(c, SvNV(*ps) * 1000.0); |
303
|
14 |
3 |
if (ps) |
304
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
305
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
306
|
14 |
0 |
client_set_max_failures(c, SvIV(*ps)); |
309
|
14 |
3 |
if (ps) |
310
|
0 |
14 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
311
|
14 |
3 |
if (ps && SvOK(*ps)) |
|
0 |
14 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
312
|
14 |
0 |
client_set_failure_timeout(c, SvIV(*ps)); |
315
|
14 |
3 |
if (ps) |
316
|
14 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
14 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
14 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
14 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_close_on_error(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_close_on_error(c, SvTRUE(*ps)); |
319
|
14 |
3 |
if (ps) |
320
|
14 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
14 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
14 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
14 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
14 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
|
0 |
0 |
client_set_nowait(c, SvTRUE(*ps)); |
323
|
0 |
17 |
if (ps) |
324
|
0 |
0 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
325
|
0 |
17 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
326
|
0 |
0 |
memd->max_size = SvUV(*ps); |
339
|
0 |
1 |
if (memd->compress_threshold > 0) |
346
|
0 |
0 |
if (len < (STRLEN) memd->compress_threshold) |
351
|
0 |
0 |
PUSHMARK(SP); |
352
|
0 |
0 |
mXPUSHs(newRV_inc(sv)); |
353
|
0 |
0 |
mXPUSHs(newRV_noinc(csv)); |
360
|
0 |
0 |
if (count != 1) |
364
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
|
0 |
0 |
if (SvTRUE(bsv) && sv_len(csv) <= len * memd->compress_ratio) |
383
|
0 |
0 |
if (flags & F_COMPRESS) |
391
|
0 |
0 |
PUSHMARK(SP); |
392
|
0 |
0 |
mXPUSHs(newRV_inc(*sv)); |
393
|
0 |
0 |
mXPUSHs(newRV_inc(rsv)); |
400
|
0 |
0 |
if (count != 1) |
404
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
|
0 |
0 |
if (SvTRUE(bsv)) |
426
|
0 |
1 |
if (SvROK(sv)) |
431
|
0 |
0 |
PUSHMARK(SP); |
432
|
0 |
0 |
XPUSHs(sv); |
439
|
0 |
0 |
if (count != 1) |
447
|
0 |
1 |
else if (SvUTF8(sv)) |
451
|
0 |
0 |
if (memd->utf8) |
472
|
0 |
0 |
if (flags & F_STORABLE) |
478
|
0 |
0 |
PUSHMARK(SP); |
479
|
0 |
0 |
XPUSHs(*sv); |
487
|
0 |
0 |
if (count != 1) |
491
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
|
0 |
0 |
if (! SvTRUE(ERRSV)) |
503
|
0 |
0 |
else if ((flags & F_UTF8) && memd->utf8) |
|
0 |
0 |
else if ((flags & F_UTF8) && memd->utf8) |
521
|
0 |
0 |
res = SvGROW(sv, value_size + 1); /* FIXME: check OOM. */ |
|
0 |
0 |
res = SvGROW(sv, value_size + 1); /* FIXME: check OOM. */ |
558
|
0 |
0 |
if (! decompress(aTHX_ value_res->memd, &value_sv, m->flags) |
559
|
0 |
0 |
|| ! deserialize(aTHX_ value_res->memd, &value_sv, m->flags)) |
565
|
0 |
0 |
if (! m->use_cas) |
589
|
0 |
0 |
if (! decompress(aTHX_ value_res->memd, &value_sv, m->flags) |
590
|
0 |
0 |
|| ! deserialize(aTHX_ value_res->memd, &value_sv, m->flags)) |
596
|
0 |
0 |
if (! m->use_cas) |
619
|
0 |
0 |
av_store(av, key_index, res ? newSViv(res) : newSVpvs("")); |
648
|
2 |
0 |
if (SvGAMAGIC(sv)) |
|
0 |
2 |
if (SvGAMAGIC(sv)) |
|
0 |
0 |
if (SvGAMAGIC(sv)) |
|
0 |
0 |
if (SvGAMAGIC(sv)) |
651
|
2 |
0 |
return SvPV(sv, *lp); |
668
|
0 |
21 |
if (! memd->c) |
670
|
21 |
0 |
if (! SvROK(conf) || SvTYPE(SvRV(conf)) != SVt_PVHV) |
|
0 |
21 |
if (! SvROK(conf) || SvTYPE(SvRV(conf)) != SVt_PVHV) |
684
|
17 |
0 |
if (memd->compress_method) |
689
|
17 |
0 |
if (memd->serialize_method) |
712
|
0 |
0 |
if (enable && ! memd->compress_method) |
|
0 |
0 |
if (enable && ! memd->compress_method) |
714
|
0 |
0 |
else if ((memd->compress_threshold > 0) != enable) |
744
|
1 |
0 |
noreply = (GIMME_V == G_VOID); |
748
|
0 |
1 |
if (ix == CMD_CAS) |
750
|
0 |
0 |
cas = SvUV(ST(arg)); |
758
|
0 |
1 |
if (buf_len > memd->max_size) |
760
|
0 |
1 |
if (items > arg) |
764
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
765
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
766
|
0 |
0 |
exptime = SvIV(sv); |
768
|
1 |
0 |
if (ix != CMD_CAS) |
779
|
1 |
0 |
if (! noreply) |
782
|
0 |
1 |
if (val) |
808
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
810
|
0 |
0 |
for (i = 1; i < items; ++i) |
828
|
0 |
0 |
if (! (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVAV)) |
|
0 |
0 |
if (! (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVAV)) |
834
|
0 |
0 |
if (ix == CMD_CAS) |
836
|
0 |
0 |
cas = SvUV(*safe_av_fetch(aTHX_ av, arg, 0)); |
844
|
0 |
0 |
if (buf_len > memd->max_size) |
846
|
0 |
0 |
if (av_len(av) >= arg) |
850
|
0 |
0 |
if (ps) |
851
|
0 |
0 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
852
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
853
|
0 |
0 |
exptime = SvIV(*ps); |
856
|
0 |
0 |
if (ix != CMD_CAS) |
868
|
0 |
0 |
if (! noreply) |
870
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
873
|
0 |
0 |
for (i = 0; i <= av_len(object.arg); ++i) |
876
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
881
|
0 |
0 |
if (! he) |
891
|
0 |
0 |
EXTEND(SP, max_index + 1); |
|
0 |
0 |
EXTEND(SP, max_index + 1); |
892
|
0 |
0 |
for (i = 0; i <= max_index; ++i) |
895
|
0 |
0 |
if (val) |
921
|
1 |
0 |
key = SvPV(ST(1), key_len); |
924
|
0 |
1 |
if (value_res.vals) |
951
|
0 |
0 |
for (i = 0; i < key_count; ++i) |
961
|
0 |
0 |
for (i = 0; i <= av_len((AV *) value_res.vals); ++i) |
964
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
969
|
0 |
0 |
if (! he) |
997
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
998
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
999
|
0 |
0 |
exptime = SvPV(sv, exptime_len); |
1000
|
0 |
0 |
key = SvPV(ST(2), key_len); |
1003
|
0 |
0 |
if (value_res.vals) |
1030
|
0 |
0 |
if (key_count > 1) |
1034
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
1035
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
1036
|
0 |
0 |
exptime = SvPV(sv, exptime_len); |
1037
|
0 |
0 |
for (i = 0; i < key_count; ++i) |
1046
|
0 |
0 |
for (i = 0; i <= av_len((AV *) value_res.vals); ++i) |
1049
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
1054
|
0 |
0 |
if (! he) |
1078
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1081
|
0 |
0 |
if (items > 2) |
1085
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
1086
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
1087
|
0 |
0 |
arg = SvUV(sv); |
1091
|
0 |
0 |
if (! noreply) |
1094
|
0 |
0 |
if (val) |
1116
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1118
|
0 |
0 |
for (i = 1; i < items; ++i) |
1127
|
0 |
0 |
if (! SvROK(sv)) |
1133
|
0 |
0 |
if (SvTYPE(SvRV(sv)) != SVt_PVAV) |
1138
|
0 |
0 |
if (av_len(av) >= 1) |
1142
|
0 |
0 |
if (ps) |
1143
|
0 |
0 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
1144
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
1145
|
0 |
0 |
arg = SvUV(*ps); |
1152
|
0 |
0 |
if (! noreply) |
1154
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
1157
|
0 |
0 |
for (i = 0; i <= av_len(object.arg); ++i) |
1160
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
1166
|
0 |
0 |
if (SvROK(key)) |
1170
|
0 |
0 |
if (! he) |
1180
|
0 |
0 |
EXTEND(SP, max_index + 1); |
|
0 |
0 |
EXTEND(SP, max_index + 1); |
1181
|
0 |
0 |
for (i = 0; i <= max_index; ++i) |
1184
|
0 |
0 |
if (val) |
1210
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1213
|
0 |
0 |
if (items > 2) |
1219
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
1220
|
0 |
0 |
if (SvOK(sv) && SvUV(sv) != 0) |
|
0 |
0 |
if (SvOK(sv) && SvUV(sv) != 0) |
|
0 |
0 |
if (SvOK(sv) && SvUV(sv) != 0) |
|
0 |
0 |
if (SvOK(sv) && SvUV(sv) != 0) |
|
0 |
0 |
if (SvOK(sv) && SvUV(sv) != 0) |
1225
|
0 |
0 |
if (! noreply) |
1228
|
0 |
0 |
if (val) |
1248
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1250
|
0 |
0 |
for (i = 1; i < items; ++i) |
1257
|
0 |
0 |
if (! SvROK(sv)) |
1267
|
0 |
0 |
if (SvTYPE(SvRV(sv)) != SVt_PVAV) |
1272
|
0 |
0 |
if (av_len(av) >= 1) |
1276
|
0 |
0 |
if (ps) |
1277
|
0 |
0 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
1278
|
0 |
0 |
if (ps && SvOK(*ps) && SvUV(*ps) != 0) |
|
0 |
0 |
if (ps && SvOK(*ps) && SvUV(*ps) != 0) |
|
0 |
0 |
if (ps && SvOK(*ps) && SvUV(*ps) != 0) |
|
0 |
0 |
if (ps && SvOK(*ps) && SvUV(*ps) != 0) |
|
0 |
0 |
if (ps && SvOK(*ps) && SvUV(*ps) != 0) |
|
0 |
0 |
if (ps && SvOK(*ps) && SvUV(*ps) != 0) |
1286
|
0 |
0 |
if (! noreply) |
1288
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
1291
|
0 |
0 |
for (i = 0; i <= av_len(object.arg); ++i) |
1294
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
1300
|
0 |
0 |
if (SvROK(key)) |
1304
|
0 |
0 |
if (! he) |
1314
|
0 |
0 |
EXTEND(SP, max_index + 1); |
|
0 |
0 |
EXTEND(SP, max_index + 1); |
1315
|
0 |
0 |
for (i = 0; i <= max_index; ++i) |
1318
|
0 |
0 |
if (val) |
1343
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1346
|
0 |
0 |
if (items > 2) |
1350
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
1351
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
1352
|
0 |
0 |
exptime = SvIV(sv); |
1356
|
0 |
0 |
if (! noreply) |
1359
|
0 |
0 |
if (val) |
1379
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1381
|
0 |
0 |
for (i = 1; i < items; ++i) |
1391
|
0 |
0 |
if (! (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVAV)) |
|
0 |
0 |
if (! (SvROK(sv) && SvTYPE(SvRV(sv)) == SVt_PVAV)) |
1398
|
0 |
0 |
if (av_len(av) >= 1) |
1402
|
0 |
0 |
if (ps) |
1403
|
0 |
0 |
SvGETMAGIC(*ps); |
|
0 |
0 |
SvGETMAGIC(*ps); |
1404
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
|
0 |
0 |
if (ps && SvOK(*ps)) |
1405
|
0 |
0 |
exptime = SvIV(*ps); |
1411
|
0 |
0 |
if (! noreply) |
1413
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
|
0 |
0 |
if (GIMME_V == G_SCALAR) |
1416
|
0 |
0 |
for (i = 0; i <= av_len(object.arg); ++i) |
1419
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
|
0 |
0 |
if (val && SvOK(*val)) |
1425
|
0 |
0 |
if (SvROK(key)) |
1429
|
0 |
0 |
if (! he) |
1439
|
0 |
0 |
EXTEND(SP, max_index + 1); |
|
0 |
0 |
EXTEND(SP, max_index + 1); |
1440
|
0 |
0 |
for (i = 0; i <= max_index; ++i) |
1443
|
0 |
0 |
if (val) |
1467
|
0 |
0 |
if (items > 1) |
1470
|
0 |
0 |
SvGETMAGIC(sv); |
|
0 |
0 |
SvGETMAGIC(sv); |
1471
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
|
0 |
0 |
if (SvOK(sv)) |
1472
|
0 |
0 |
delay = SvUV(sv); |
1474
|
0 |
0 |
noreply = (GIMME_V == G_VOID); |
1476
|
0 |
0 |
if (! noreply) |
1479
|
0 |
0 |
for (i = 0; i <= av_len(object.arg); ++i) |
1483
|
0 |
0 |
if (version && SvOK(*version)) |
|
0 |
0 |
if (version && SvOK(*version)) |
|
0 |
0 |
if (version && SvOK(*version)) |
|
0 |
0 |
if (version && SvOK(*version)) |
1487
|
0 |
0 |
if (! he) |
1518
|
0 |
15 |
for (i = 0; i <= av_len(object.arg); ++i) |
1522
|
0 |
0 |
if (version && SvOK(*version)) |
|
0 |
0 |
if (version && SvOK(*version)) |
|
0 |
0 |
if (version && SvOK(*version)) |
|
0 |
0 |
if (version && SvOK(*version)) |
1526
|
0 |
0 |
if (! he) |
1544
|
0 |
0 |
if (items > 1) |
1546
|
0 |
0 |
ns = SvPV(ST(1), len); |
1547
|
0 |
0 |
if (client_set_prefix(memd->c, ns, len) != MEMCACHED_SUCCESS) |