line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Couchbase::Client::Return; |
2
|
4
|
|
|
4
|
|
19
|
use strict; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
148
|
|
3
|
4
|
|
|
4
|
|
15
|
use warnings; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
95
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
15
|
use Couchbase::Client::IDXConst; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
916
|
|
6
|
4
|
|
|
4
|
|
21
|
use Couchbase::Client::Errors; |
|
4
|
|
|
|
|
4
|
|
|
4
|
|
|
|
|
623
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Class::XSAccessor::Array { |
9
|
4
|
|
|
|
|
53
|
accessors => { |
10
|
|
|
|
|
|
|
cas => RETIDX_CAS, |
11
|
|
|
|
|
|
|
value => RETIDX_VALUE, |
12
|
|
|
|
|
|
|
errnum => RETIDX_ERRNUM, |
13
|
|
|
|
|
|
|
errstr => RETIDX_ERRSTR |
14
|
|
|
|
|
|
|
} |
15
|
4
|
|
|
4
|
|
2231
|
}; |
|
4
|
|
|
|
|
9693
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub is_ok { |
18
|
0
|
0
|
|
0
|
1
|
|
die "GRRR" unless defined $_[0]->[RETIDX_ERRNUM]; |
19
|
|
|
|
|
|
|
#warn "Checking defined errno"; |
20
|
0
|
|
|
|
|
|
$_[0]->[RETIDX_ERRNUM] == COUCHBASE_SUCCESS; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
{ |
24
|
4
|
|
|
4
|
|
1039
|
no strict 'refs'; |
|
4
|
|
|
|
|
677
|
|
|
4
|
|
|
|
|
408
|
|
25
|
|
|
|
|
|
|
foreach my $errsym (@Couchbase::Client::Errors::EXPORT) { |
26
|
|
|
|
|
|
|
my $subname = $errsym; |
27
|
|
|
|
|
|
|
my $wanted = &{$errsym}(); |
28
|
|
|
|
|
|
|
$subname =~ s/COUCHBASE_//g; |
29
|
0
|
|
|
0
|
|
|
*{$subname} = sub { $_[0]->errnum == $wanted }; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |