line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Couchbase::Client::Return; |
2
|
3
|
|
|
3
|
|
11
|
use strict; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
97
|
|
3
|
3
|
|
|
3
|
|
14
|
use warnings; |
|
3
|
|
|
|
|
2
|
|
|
3
|
|
|
|
|
68
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
10
|
use Couchbase::Client::IDXConst; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
496
|
|
6
|
3
|
|
|
3
|
|
15
|
use Couchbase::Client::Errors; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
479
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Class::XSAccessor::Array { |
9
|
3
|
|
|
|
|
43
|
accessors => { |
10
|
|
|
|
|
|
|
cas => RETIDX_CAS, |
11
|
|
|
|
|
|
|
value => RETIDX_VALUE, |
12
|
|
|
|
|
|
|
errnum => RETIDX_ERRNUM, |
13
|
|
|
|
|
|
|
errstr => RETIDX_ERRSTR |
14
|
|
|
|
|
|
|
} |
15
|
3
|
|
|
3
|
|
4027
|
}; |
|
3
|
|
|
|
|
8077
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub is_ok { |
18
|
0
|
|
|
0
|
1
|
|
$_[0]->[RETIDX_ERRNUM] == COUCHBASE_SUCCESS; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
{ |
22
|
3
|
|
|
3
|
|
727
|
no strict 'refs'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
319
|
|
23
|
|
|
|
|
|
|
foreach my $errsym (@Couchbase::Client::Errors::EXPORT) { |
24
|
|
|
|
|
|
|
my $subname = $errsym; |
25
|
|
|
|
|
|
|
$subname =~ s/COUCHBASE_//g; |
26
|
0
|
|
|
0
|
|
|
*{$subname} = sub { $_[0]->errnum == $_[1] }; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |