line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Couchbase::Client::Return; |
2
|
4
|
|
|
4
|
|
17
|
use strict; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
127
|
|
3
|
4
|
|
|
4
|
|
22
|
use warnings; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
96
|
|
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
17
|
use Couchbase::Client::IDXConst; |
|
4
|
|
|
|
|
5
|
|
|
4
|
|
|
|
|
758
|
|
6
|
4
|
|
|
4
|
|
20
|
use Couchbase::Client::Errors; |
|
4
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
584
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Class::XSAccessor::Array { |
9
|
4
|
|
|
|
|
58
|
accessors => { |
10
|
|
|
|
|
|
|
cas => RETIDX_CAS, |
11
|
|
|
|
|
|
|
value => RETIDX_VALUE, |
12
|
|
|
|
|
|
|
errnum => RETIDX_ERRNUM, |
13
|
|
|
|
|
|
|
errstr => RETIDX_ERRSTR |
14
|
|
|
|
|
|
|
} |
15
|
4
|
|
|
4
|
|
3750
|
}; |
|
4
|
|
|
|
|
22001
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub is_ok { |
18
|
0
|
|
|
0
|
1
|
|
$_[0]->[RETIDX_ERRNUM] == COUCHBASE_SUCCESS; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
{ |
22
|
4
|
|
|
4
|
|
1069
|
no strict 'refs'; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
412
|
|
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__ |