YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/src/yb/util/status_ec.h
Line
Count
Source
1
//
2
// Copyright (c) YugaByte, Inc.
3
//
4
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
// in compliance with the License.  You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software distributed under the License
10
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11
// or implied.  See the License for the specific language governing permissions and limitations
12
// under the License.
13
//
14
//
15
16
#ifndef YB_UTIL_STATUS_EC_H
17
#define YB_UTIL_STATUS_EC_H
18
19
#include <boost/optional.hpp>
20
21
#include "yb/gutil/endian.h"
22
23
#include "yb/util/status.h"
24
25
namespace yb {
26
27
// Base class for all error tags that use integral representation.
28
// For instance time duration.
29
template <class Traits>
30
class IntegralBackedErrorTag {
31
 public:
32
  typedef typename Traits::ValueType Value;
33
34
20.1M
  static Value Decode(const uint8_t* source) {
35
20.1M
    if (!source) {
36
17.0M
      return Value();
37
17.0M
    }
38
3.16M
    return Traits::FromRepresentation(
39
3.16M
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
3.16M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_20TransactionErrorCodeEEEE6DecodeEPKh
Line
Count
Source
34
1.55M
  static Value Decode(const uint8_t* source) {
35
1.55M
    if (!source) {
36
8.45k
      return Value();
37
8.45k
    }
38
1.55M
    return Traits::FromRepresentation(
39
1.55M
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
1.55M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEEEE6DecodeEPKh
Line
Count
Source
34
48.5k
  static Value Decode(const uint8_t* source) {
35
48.5k
    if (!source) {
36
9.40k
      return Value();
37
9.40k
    }
38
39.1k
    return Traits::FromRepresentation(
39
39.1k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
39.1k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_2ql9ErrorCodeEEEE6DecodeEPKh
Line
Count
Source
34
20.3k
  static Value Decode(const uint8_t* source) {
35
20.3k
    if (!source) {
36
11
      return Value();
37
11
    }
38
20.3k
    return Traits::FromRepresentation(
39
20.3k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
20.3k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIiEEE6DecodeEPKh
Line
Count
Source
34
1.10M
  static Value Decode(const uint8_t* source) {
35
1.10M
    if (!source) {
36
355k
      return Value();
37
355k
    }
38
744k
    return Traits::FromRepresentation(
39
744k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
744k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_13YBPgErrorCodeEEEE6DecodeEPKh
Line
Count
Source
34
533k
  static Value Decode(const uint8_t* source) {
35
533k
    if (!source) {
36
0
      return Value();
37
0
    }
38
533k
    return Traits::FromRepresentation(
39
533k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
533k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIxEEE6DecodeEPKh
Line
Count
Source
34
66.6k
  static Value Decode(const uint8_t* source) {
35
66.6k
    if (!source) {
36
32.1k
      return Value();
37
32.1k
    }
38
34.4k
    return Traits::FromRepresentation(
39
34.4k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
34.4k
  }
_ZN2yb22IntegralBackedErrorTagINS_16ErrorDelayTraitsEE6DecodeEPKh
Line
Count
Source
34
2
  static Value Decode(const uint8_t* source) {
35
2
    if (!source) {
36
0
      return Value();
37
0
    }
38
2
    return Traits::FromRepresentation(
39
2
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
2
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEEEE6DecodeEPKh
Line
Count
Source
34
154
  static Value Decode(const uint8_t* source) {
35
154
    if (!source) {
36
153
      return Value();
37
153
    }
38
1
    return Traits::FromRepresentation(
39
1
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
1
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEEEE6DecodeEPKh
Line
Count
Source
34
803k
  static Value Decode(const uint8_t* source) {
35
803k
    if (!source) {
36
620k
      return Value();
37
620k
    }
38
183k
    return Traits::FromRepresentation(
39
183k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
183k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEEEE6DecodeEPKh
Line
Count
Source
34
48.4k
  static Value Decode(const uint8_t* source) {
35
48.4k
    if (!source) {
36
0
      return Value();
37
0
    }
38
48.4k
    return Traits::FromRepresentation(
39
48.4k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
48.4k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEEEE6DecodeEPKh
Line
Count
Source
34
797k
  static Value Decode(const uint8_t* source) {
35
797k
    if (!source) {
36
791k
      return Value();
37
791k
    }
38
5.55k
    return Traits::FromRepresentation(
39
5.55k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
5.55k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEEEE6DecodeEPKh
Line
Count
Source
34
1
  static Value Decode(const uint8_t* source) {
35
1
    if (!source) {
36
0
      return Value();
37
0
    }
38
1
    return Traits::FromRepresentation(
39
1
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
1
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_29PgsqlResponsePB_RequestStatusEEEE6DecodeEPKh
Line
Count
Source
34
776k
  static Value Decode(const uint8_t* source) {
35
776k
    if (!source) {
36
774k
      return Value();
37
774k
    }
38
2.07k
    return Traits::FromRepresentation(
39
2.07k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
2.07k
  }
_ZN2yb22IntegralBackedErrorTagINS_7tserver15MonoDeltaTraitsEE6DecodeEPKh
Line
Count
Source
34
6.74k
  static Value Decode(const uint8_t* source) {
35
6.74k
    if (!source) {
36
6.72k
      return Value();
37
6.72k
    }
38
18
    return Traits::FromRepresentation(
39
18
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
18
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6client15ClientErrorCodeEEEE6DecodeEPKh
Line
Count
Source
34
14.4M
  static Value Decode(const uint8_t* source) {
35
14.4M
    if (!source) {
36
14.4M
      return Value();
37
14.4M
    }
38
4.56k
    return Traits::FromRepresentation(
39
4.56k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
4.56k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEEEE6DecodeEPKh
Line
Count
Source
34
8.85k
  static Value Decode(const uint8_t* source) {
35
8.85k
    if (!source) {
36
8.67k
      return Value();
37
8.67k
    }
38
179
    return Traits::FromRepresentation(
39
179
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
179
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsImEEE6DecodeEPKh
Line
Count
Source
34
1.02k
  static Value Decode(const uint8_t* source) {
35
1.02k
    if (!source) {
36
0
      return Value();
37
0
    }
38
1.02k
    return Traits::FromRepresentation(
39
1.02k
        Load<typename Traits::RepresentationType, LittleEndian>(source));
40
1.02k
  }
41
42
10.8M
  static size_t DecodeSize(const uint8_t* source) {
43
10.8M
    return sizeof(typename Traits::RepresentationType);
44
10.8M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIxEEE10DecodeSizeEPKh
Line
Count
Source
42
182k
  static size_t DecodeSize(const uint8_t* source) {
43
182k
    return sizeof(typename Traits::RepresentationType);
44
182k
  }
_ZN2yb22IntegralBackedErrorTagINS_16ErrorDelayTraitsEE10DecodeSizeEPKh
Line
Count
Source
42
2
  static size_t DecodeSize(const uint8_t* source) {
43
2
    return sizeof(typename Traits::RepresentationType);
44
2
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
4
  static size_t DecodeSize(const uint8_t* source) {
43
4
    return sizeof(typename Traits::RepresentationType);
44
4
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
22.1k
  static size_t DecodeSize(const uint8_t* source) {
43
22.1k
    return sizeof(typename Traits::RepresentationType);
44
22.1k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
62.4k
  static size_t DecodeSize(const uint8_t* source) {
43
62.4k
    return sizeof(typename Traits::RepresentationType);
44
62.4k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_2ql9ErrorCodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
20.3k
  static size_t DecodeSize(const uint8_t* source) {
43
20.3k
    return sizeof(typename Traits::RepresentationType);
44
20.3k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
1
  static size_t DecodeSize(const uint8_t* source) {
43
1
    return sizeof(typename Traits::RepresentationType);
44
1
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEEEE10DecodeSizeEPKh
Line
Count
Source
42
343k
  static size_t DecodeSize(const uint8_t* source) {
43
343k
    return sizeof(typename Traits::RepresentationType);
44
343k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
612k
  static size_t DecodeSize(const uint8_t* source) {
43
612k
    return sizeof(typename Traits::RepresentationType);
44
612k
  }
_ZN2yb22IntegralBackedErrorTagINS_7tserver15MonoDeltaTraitsEE10DecodeSizeEPKh
Line
Count
Source
42
54
  static size_t DecodeSize(const uint8_t* source) {
43
54
    return sizeof(typename Traits::RepresentationType);
44
54
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6client15ClientErrorCodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
1.03k
  static size_t DecodeSize(const uint8_t* source) {
43
1.03k
    return sizeof(typename Traits::RepresentationType);
44
1.03k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_13YBPgErrorCodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
2.56M
  static size_t DecodeSize(const uint8_t* source) {
43
2.56M
    return sizeof(typename Traits::RepresentationType);
44
2.56M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_29PgsqlResponsePB_RequestStatusEEEE10DecodeSizeEPKh
Line
Count
Source
42
9.36k
  static size_t DecodeSize(const uint8_t* source) {
43
9.36k
    return sizeof(typename Traits::RepresentationType);
44
9.36k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsImEEE10DecodeSizeEPKh
Line
Count
Source
42
4.17k
  static size_t DecodeSize(const uint8_t* source) {
43
4.17k
    return sizeof(typename Traits::RepresentationType);
44
4.17k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_20TransactionErrorCodeEEEE10DecodeSizeEPKh
Line
Count
Source
42
6.30M
  static size_t DecodeSize(const uint8_t* source) {
43
6.30M
    return sizeof(typename Traits::RepresentationType);
44
6.30M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIiEEE10DecodeSizeEPKh
Line
Count
Source
42
756k
  static size_t DecodeSize(const uint8_t* source) {
43
756k
    return sizeof(typename Traits::RepresentationType);
44
756k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEEEE10DecodeSizeEPKh
Line
Count
Source
42
587
  static size_t DecodeSize(const uint8_t* source) {
43
587
    return sizeof(typename Traits::RepresentationType);
44
587
  }
45
46
7.14M
  static size_t EncodedSize(Value value) {
47
7.14M
    return sizeof(typename Traits::RepresentationType);
48
7.14M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_20TransactionErrorCodeEEEE11EncodedSizeES2_
Line
Count
Source
46
713k
  static size_t EncodedSize(Value value) {
47
713k
    return sizeof(typename Traits::RepresentationType);
48
713k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEEEE11EncodedSizeES3_
Line
Count
Source
46
37.7k
  static size_t EncodedSize(Value value) {
47
37.7k
    return sizeof(typename Traits::RepresentationType);
48
37.7k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_2ql9ErrorCodeEEEE11EncodedSizeES3_
Line
Count
Source
46
24.6k
  static size_t EncodedSize(Value value) {
47
24.6k
    return sizeof(typename Traits::RepresentationType);
48
24.6k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIiEEE11EncodedSizeEi
Line
Count
Source
46
5.63M
  static size_t EncodedSize(Value value) {
47
5.63M
    return sizeof(typename Traits::RepresentationType);
48
5.63M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_13YBPgErrorCodeEEEE11EncodedSizeES2_
Line
Count
Source
46
334k
  static size_t EncodedSize(Value value) {
47
334k
    return sizeof(typename Traits::RepresentationType);
48
334k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIxEEE11EncodedSizeEx
Line
Count
Source
46
10.9k
  static size_t EncodedSize(Value value) {
47
10.9k
    return sizeof(typename Traits::RepresentationType);
48
10.9k
  }
_ZN2yb22IntegralBackedErrorTagINS_16ErrorDelayTraitsEE11EncodedSizeENS_9MonoDeltaE
Line
Count
Source
46
2
  static size_t EncodedSize(Value value) {
47
2
    return sizeof(typename Traits::RepresentationType);
48
2
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEEEE11EncodedSizeES3_
Line
Count
Source
46
2
  static size_t EncodedSize(Value value) {
47
2
    return sizeof(typename Traits::RepresentationType);
48
2
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEEEE11EncodedSizeES3_
Line
Count
Source
46
282k
  static size_t EncodedSize(Value value) {
47
282k
    return sizeof(typename Traits::RepresentationType);
48
282k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEEEE11EncodedSizeES3_
Line
Count
Source
46
98.5k
  static size_t EncodedSize(Value value) {
47
98.5k
    return sizeof(typename Traits::RepresentationType);
48
98.5k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEEEE11EncodedSizeES3_
Line
Count
Source
46
24
  static size_t EncodedSize(Value value) {
47
24
    return sizeof(typename Traits::RepresentationType);
48
24
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEEEE11EncodedSizeES3_
Line
Count
Source
46
352
  static size_t EncodedSize(Value value) {
47
352
    return sizeof(typename Traits::RepresentationType);
48
352
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_29PgsqlResponsePB_RequestStatusEEEE11EncodedSizeES2_
Line
Count
Source
46
2.07k
  static size_t EncodedSize(Value value) {
47
2.07k
    return sizeof(typename Traits::RepresentationType);
48
2.07k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsImEEE11EncodedSizeEm
Line
Count
Source
46
2.07k
  static size_t EncodedSize(Value value) {
47
2.07k
    return sizeof(typename Traits::RepresentationType);
48
2.07k
  }
_ZN2yb22IntegralBackedErrorTagINS_7tserver15MonoDeltaTraitsEE11EncodedSizeENS_9MonoDeltaE
Line
Count
Source
46
12
  static size_t EncodedSize(Value value) {
47
12
    return sizeof(typename Traits::RepresentationType);
48
12
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6client15ClientErrorCodeEEEE11EncodedSizeES3_
Line
Count
Source
46
6
  static size_t EncodedSize(Value value) {
47
6
    return sizeof(typename Traits::RepresentationType);
48
6
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEEEE11EncodedSizeES3_
Line
Count
Source
46
2.55k
  static size_t EncodedSize(Value value) {
47
2.55k
    return sizeof(typename Traits::RepresentationType);
48
2.55k
  }
49
50
3.57M
  static uint8_t* Encode(Value value, uint8_t* out) {
51
3.57M
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
3.57M
    return out + sizeof(typename Traits::RepresentationType);
53
3.57M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_20TransactionErrorCodeEEEE6EncodeES2_Ph
Line
Count
Source
50
356k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
356k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
356k
    return out + sizeof(typename Traits::RepresentationType);
53
356k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEEEE6EncodeES3_Ph
Line
Count
Source
50
18.8k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
18.8k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
18.8k
    return out + sizeof(typename Traits::RepresentationType);
53
18.8k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_2ql9ErrorCodeEEEE6EncodeES3_Ph
Line
Count
Source
50
12.3k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
12.3k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
12.3k
    return out + sizeof(typename Traits::RepresentationType);
53
12.3k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIiEEE6EncodeEiPh
Line
Count
Source
50
2.81M
  static uint8_t* Encode(Value value, uint8_t* out) {
51
2.81M
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
2.81M
    return out + sizeof(typename Traits::RepresentationType);
53
2.81M
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_13YBPgErrorCodeEEEE6EncodeES2_Ph
Line
Count
Source
50
167k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
167k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
167k
    return out + sizeof(typename Traits::RepresentationType);
53
167k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIxEEE6EncodeExPh
Line
Count
Source
50
5.49k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
5.49k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
5.49k
    return out + sizeof(typename Traits::RepresentationType);
53
5.49k
  }
_ZN2yb22IntegralBackedErrorTagINS_16ErrorDelayTraitsEE6EncodeENS_9MonoDeltaEPh
Line
Count
Source
50
1
  static uint8_t* Encode(Value value, uint8_t* out) {
51
1
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
1
    return out + sizeof(typename Traits::RepresentationType);
53
1
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEEEE6EncodeES3_Ph
Line
Count
Source
50
1
  static uint8_t* Encode(Value value, uint8_t* out) {
51
1
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
1
    return out + sizeof(typename Traits::RepresentationType);
53
1
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEEEE6EncodeES3_Ph
Line
Count
Source
50
141k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
141k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
141k
    return out + sizeof(typename Traits::RepresentationType);
53
141k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEEEE6EncodeES3_Ph
Line
Count
Source
50
49.2k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
49.2k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
49.2k
    return out + sizeof(typename Traits::RepresentationType);
53
49.2k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEEEE6EncodeES3_Ph
Line
Count
Source
50
12
  static uint8_t* Encode(Value value, uint8_t* out) {
51
12
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
12
    return out + sizeof(typename Traits::RepresentationType);
53
12
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEEEE6EncodeES3_Ph
Line
Count
Source
50
176
  static uint8_t* Encode(Value value, uint8_t* out) {
51
176
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
176
    return out + sizeof(typename Traits::RepresentationType);
53
176
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_29PgsqlResponsePB_RequestStatusEEEE6EncodeES2_Ph
Line
Count
Source
50
1.03k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
1.03k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
1.03k
    return out + sizeof(typename Traits::RepresentationType);
53
1.03k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsImEEE6EncodeEmPh
Line
Count
Source
50
1.03k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
1.03k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
1.03k
    return out + sizeof(typename Traits::RepresentationType);
53
1.03k
  }
_ZN2yb22IntegralBackedErrorTagINS_7tserver15MonoDeltaTraitsEE6EncodeENS_9MonoDeltaEPh
Line
Count
Source
50
6
  static uint8_t* Encode(Value value, uint8_t* out) {
51
6
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
6
    return out + sizeof(typename Traits::RepresentationType);
53
6
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6client15ClientErrorCodeEEEE6EncodeES3_Ph
Line
Count
Source
50
3
  static uint8_t* Encode(Value value, uint8_t* out) {
51
3
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
3
    return out + sizeof(typename Traits::RepresentationType);
53
3
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEEEE6EncodeES3_Ph
Line
Count
Source
50
1.26k
  static uint8_t* Encode(Value value, uint8_t* out) {
51
1.26k
    Store<typename Traits::RepresentationType, LittleEndian>(out, Traits::ToRepresentation(value));
52
1.26k
    return out + sizeof(typename Traits::RepresentationType);
53
1.26k
  }
54
55
900k
  static std::string DecodeToString(const uint8_t* source) {
56
900k
    return Traits::ToString(Decode(source));
57
900k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIxEEE14DecodeToStringEPKh
Line
Count
Source
55
17.2k
  static std::string DecodeToString(const uint8_t* source) {
56
17.2k
    return Traits::ToString(Decode(source));
57
17.2k
  }
_ZN2yb22IntegralBackedErrorTagINS_16ErrorDelayTraitsEE14DecodeToStringEPKh
Line
Count
Source
55
1
  static std::string DecodeToString(const uint8_t* source) {
56
1
    return Traits::ToString(Decode(source));
57
1
  }
Unexecuted instantiation: _ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEEEE14DecodeToStringEPKh
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
52
  static std::string DecodeToString(const uint8_t* source) {
56
52
    return Traits::ToString(Decode(source));
57
52
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
16.3k
  static std::string DecodeToString(const uint8_t* source) {
56
16.3k
    return Traits::ToString(Decode(source));
57
16.3k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_2ql9ErrorCodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
4.52k
  static std::string DecodeToString(const uint8_t* source) {
56
4.52k
    return Traits::ToString(Decode(source));
57
4.52k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
1
  static std::string DecodeToString(const uint8_t* source) {
56
1
    return Traits::ToString(Decode(source));
57
1
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEEEE14DecodeToStringEPKh
Line
Count
Source
55
41.7k
  static std::string DecodeToString(const uint8_t* source) {
56
41.7k
    return Traits::ToString(Decode(source));
57
41.7k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
43.5k
  static std::string DecodeToString(const uint8_t* source) {
56
43.5k
    return Traits::ToString(Decode(source));
57
43.5k
  }
_ZN2yb22IntegralBackedErrorTagINS_7tserver15MonoDeltaTraitsEE14DecodeToStringEPKh
Line
Count
Source
55
6
  static std::string DecodeToString(const uint8_t* source) {
56
6
    return Traits::ToString(Decode(source));
57
6
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_6client15ClientErrorCodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
10
  static std::string DecodeToString(const uint8_t* source) {
56
10
    return Traits::ToString(Decode(source));
57
10
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_20TransactionErrorCodeEEEE14DecodeToStringEPKh
Line
Count
Source
55
628k
  static std::string DecodeToString(const uint8_t* source) {
56
628k
    return Traits::ToString(Decode(source));
57
628k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsIiEEE14DecodeToStringEPKh
Line
Count
Source
55
148k
  static std::string DecodeToString(const uint8_t* source) {
56
148k
    return Traits::ToString(Decode(source));
57
148k
  }
_ZN2yb22IntegralBackedErrorTagINS_19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEEEE14DecodeToStringEPKh
Line
Count
Source
55
179
  static std::string DecodeToString(const uint8_t* source) {
56
179
    return Traits::ToString(Decode(source));
57
179
  }
58
};
59
60
class StringVectorBackedErrorTag {
61
 public:
62
  typedef typename std::vector<std::string> Value;
63
  typedef uint64_t SizeType;
64
65
  static Value Decode(const uint8_t* source);
66
67
22.9k
  static size_t DecodeSize(const uint8_t* source) {
68
22.9k
    return Load<SizeType, LittleEndian>(source);
69
22.9k
  }
70
71
  static size_t EncodedSize(const Value& value);
72
73
  static uint8_t* Encode(const Value& value, uint8_t* out);
74
75
  static std::string DecodeToString(const uint8_t* source);
76
};
77
78
template <class Enum>
79
typename std::enable_if<std::is_enum<Enum>::value, std::string>::type
80
735k
IntegralToString(Enum e) {
81
735k
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
735k
}
Unexecuted instantiation: _ZN2yb16IntegralToStringINS_3cdc15CDCErrorPB_CodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
_ZN2yb16IntegralToStringINS_9consensus21ConsensusErrorPB_CodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
52
IntegralToString(Enum e) {
81
52
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
52
}
_ZN2yb16IntegralToStringINS_6master18MasterErrorPB_CodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
16.3k
IntegralToString(Enum e) {
81
16.3k
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
16.3k
}
_ZN2yb16IntegralToStringINS_2ql9ErrorCodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
4.52k
IntegralToString(Enum e) {
81
4.52k
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
4.52k
}
_ZN2yb16IntegralToStringIN7rocksdb11TimeoutCodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
1
IntegralToString(Enum e) {
81
1
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
1
}
_ZN2yb16IntegralToStringINS_6tablet16RaftGroupStatePBEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
41.9k
IntegralToString(Enum e) {
81
41.9k
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
41.9k
}
_ZN2yb16IntegralToStringINS_7tserver24TabletServerErrorPB_CodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
43.6k
IntegralToString(Enum e) {
81
43.6k
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
43.6k
}
_ZN2yb16IntegralToStringINS_6client15ClientErrorCodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
10
IntegralToString(Enum e) {
81
10
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
10
}
_ZN2yb16IntegralToStringINS_20TransactionErrorCodeEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE4typeES4_
Line
Count
Source
80
628k
IntegralToString(Enum e) {
81
628k
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
628k
}
_ZN2yb16IntegralToStringINS_3rpc28ErrorStatusPB_RpcErrorCodePBEEENSt3__19enable_ifIXsr3std7is_enumIT_EE5valueENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE4typeES5_
Line
Count
Source
80
179
IntegralToString(Enum e) {
81
179
  return std::to_string(static_cast<typename std::underlying_type<Enum>::type>(e));
82
179
}
83
84
template <class Value>
85
typename std::enable_if<!std::is_enum<Value>::value, std::string>::type
86
166k
IntegralToString(Value value) {
87
166k
  return std::to_string(value);
88
166k
}
_ZN2yb16IntegralToStringIxEENSt3__19enable_ifIXntsr3std7is_enumIT_EE5valueENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE4typeES3_
Line
Count
Source
86
17.2k
IntegralToString(Value value) {
87
17.2k
  return std::to_string(value);
88
17.2k
}
_ZN2yb16IntegralToStringIiEENSt3__19enable_ifIXntsr3std7is_enumIT_EE5valueENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE4typeES3_
Line
Count
Source
86
148k
IntegralToString(Value value) {
87
148k
  return std::to_string(value);
88
148k
}
89
90
// Base class for error tags that have integral value type.
91
template <class Value>
92
class PlainIntegralTraits {
93
 public:
94
  typedef Value ValueType;
95
  typedef ValueType RepresentationType;
96
97
3.16M
  static ValueType FromRepresentation(RepresentationType source) {
98
3.16M
    return source;
99
3.16M
  }
_ZN2yb19PlainIntegralTraitsINS_20TransactionErrorCodeEE18FromRepresentationES1_
Line
Count
Source
97
1.55M
  static ValueType FromRepresentation(RepresentationType source) {
98
1.55M
    return source;
99
1.55M
  }
_ZN2yb19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEE18FromRepresentationES2_
Line
Count
Source
97
39.1k
  static ValueType FromRepresentation(RepresentationType source) {
98
39.1k
    return source;
99
39.1k
  }
_ZN2yb19PlainIntegralTraitsINS_2ql9ErrorCodeEE18FromRepresentationES2_
Line
Count
Source
97
20.3k
  static ValueType FromRepresentation(RepresentationType source) {
98
20.3k
    return source;
99
20.3k
  }
_ZN2yb19PlainIntegralTraitsIiE18FromRepresentationEi
Line
Count
Source
97
742k
  static ValueType FromRepresentation(RepresentationType source) {
98
742k
    return source;
99
742k
  }
_ZN2yb19PlainIntegralTraitsINS_13YBPgErrorCodeEE18FromRepresentationES1_
Line
Count
Source
97
533k
  static ValueType FromRepresentation(RepresentationType source) {
98
533k
    return source;
99
533k
  }
_ZN2yb19PlainIntegralTraitsIxE18FromRepresentationEx
Line
Count
Source
97
34.4k
  static ValueType FromRepresentation(RepresentationType source) {
98
34.4k
    return source;
99
34.4k
  }
_ZN2yb19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEE18FromRepresentationES2_
Line
Count
Source
97
1
  static ValueType FromRepresentation(RepresentationType source) {
98
1
    return source;
99
1
  }
_ZN2yb19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEE18FromRepresentationES2_
Line
Count
Source
97
182k
  static ValueType FromRepresentation(RepresentationType source) {
98
182k
    return source;
99
182k
  }
_ZN2yb19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEE18FromRepresentationES2_
Line
Count
Source
97
48.4k
  static ValueType FromRepresentation(RepresentationType source) {
98
48.4k
    return source;
99
48.4k
  }
_ZN2yb19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEE18FromRepresentationES2_
Line
Count
Source
97
5.56k
  static ValueType FromRepresentation(RepresentationType source) {
98
5.56k
    return source;
99
5.56k
  }
_ZN2yb19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEE18FromRepresentationES2_
Line
Count
Source
97
1
  static ValueType FromRepresentation(RepresentationType source) {
98
1
    return source;
99
1
  }
_ZN2yb19PlainIntegralTraitsINS_29PgsqlResponsePB_RequestStatusEE18FromRepresentationES1_
Line
Count
Source
97
2.07k
  static ValueType FromRepresentation(RepresentationType source) {
98
2.07k
    return source;
99
2.07k
  }
_ZN2yb19PlainIntegralTraitsINS_6client15ClientErrorCodeEE18FromRepresentationES2_
Line
Count
Source
97
1.02k
  static ValueType FromRepresentation(RepresentationType source) {
98
1.02k
    return source;
99
1.02k
  }
_ZN2yb19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEE18FromRepresentationES2_
Line
Count
Source
97
179
  static ValueType FromRepresentation(RepresentationType source) {
98
179
    return source;
99
179
  }
_ZN2yb19PlainIntegralTraitsImE18FromRepresentationEm
Line
Count
Source
97
1.02k
  static ValueType FromRepresentation(RepresentationType source) {
98
1.02k
    return source;
99
1.02k
  }
100
101
3.57M
  static RepresentationType ToRepresentation(ValueType value) {
102
3.57M
    return value;
103
3.57M
  }
_ZN2yb19PlainIntegralTraitsINS_20TransactionErrorCodeEE16ToRepresentationES1_
Line
Count
Source
101
356k
  static RepresentationType ToRepresentation(ValueType value) {
102
356k
    return value;
103
356k
  }
_ZN2yb19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEE16ToRepresentationES2_
Line
Count
Source
101
18.8k
  static RepresentationType ToRepresentation(ValueType value) {
102
18.8k
    return value;
103
18.8k
  }
_ZN2yb19PlainIntegralTraitsINS_2ql9ErrorCodeEE16ToRepresentationES2_
Line
Count
Source
101
12.3k
  static RepresentationType ToRepresentation(ValueType value) {
102
12.3k
    return value;
103
12.3k
  }
_ZN2yb19PlainIntegralTraitsIiE16ToRepresentationEi
Line
Count
Source
101
2.81M
  static RepresentationType ToRepresentation(ValueType value) {
102
2.81M
    return value;
103
2.81M
  }
_ZN2yb19PlainIntegralTraitsINS_13YBPgErrorCodeEE16ToRepresentationES1_
Line
Count
Source
101
167k
  static RepresentationType ToRepresentation(ValueType value) {
102
167k
    return value;
103
167k
  }
_ZN2yb19PlainIntegralTraitsIxE16ToRepresentationEx
Line
Count
Source
101
5.49k
  static RepresentationType ToRepresentation(ValueType value) {
102
5.49k
    return value;
103
5.49k
  }
_ZN2yb19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEE16ToRepresentationES2_
Line
Count
Source
101
1
  static RepresentationType ToRepresentation(ValueType value) {
102
1
    return value;
103
1
  }
_ZN2yb19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEE16ToRepresentationES2_
Line
Count
Source
101
141k
  static RepresentationType ToRepresentation(ValueType value) {
102
141k
    return value;
103
141k
  }
_ZN2yb19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEE16ToRepresentationES2_
Line
Count
Source
101
49.2k
  static RepresentationType ToRepresentation(ValueType value) {
102
49.2k
    return value;
103
49.2k
  }
_ZN2yb19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEE16ToRepresentationES2_
Line
Count
Source
101
12
  static RepresentationType ToRepresentation(ValueType value) {
102
12
    return value;
103
12
  }
_ZN2yb19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEE16ToRepresentationES2_
Line
Count
Source
101
176
  static RepresentationType ToRepresentation(ValueType value) {
102
176
    return value;
103
176
  }
_ZN2yb19PlainIntegralTraitsINS_29PgsqlResponsePB_RequestStatusEE16ToRepresentationES1_
Line
Count
Source
101
1.03k
  static RepresentationType ToRepresentation(ValueType value) {
102
1.03k
    return value;
103
1.03k
  }
_ZN2yb19PlainIntegralTraitsImE16ToRepresentationEm
Line
Count
Source
101
1.03k
  static RepresentationType ToRepresentation(ValueType value) {
102
1.03k
    return value;
103
1.03k
  }
_ZN2yb19PlainIntegralTraitsINS_6client15ClientErrorCodeEE16ToRepresentationES2_
Line
Count
Source
101
3
  static RepresentationType ToRepresentation(ValueType value) {
102
3
    return value;
103
3
  }
_ZN2yb19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEE16ToRepresentationES2_
Line
Count
Source
101
1.27k
  static RepresentationType ToRepresentation(ValueType value) {
102
1.27k
    return value;
103
1.27k
  }
104
105
901k
  static std::string ToString(ValueType value) {
106
901k
    return IntegralToString(value);
107
901k
  }
_ZN2yb19PlainIntegralTraitsIxE8ToStringEx
Line
Count
Source
105
17.2k
  static std::string ToString(ValueType value) {
106
17.2k
    return IntegralToString(value);
107
17.2k
  }
Unexecuted instantiation: _ZN2yb19PlainIntegralTraitsINS_3cdc15CDCErrorPB_CodeEE8ToStringES2_
_ZN2yb19PlainIntegralTraitsINS_9consensus21ConsensusErrorPB_CodeEE8ToStringES2_
Line
Count
Source
105
52
  static std::string ToString(ValueType value) {
106
52
    return IntegralToString(value);
107
52
  }
_ZN2yb19PlainIntegralTraitsINS_6master18MasterErrorPB_CodeEE8ToStringES2_
Line
Count
Source
105
16.3k
  static std::string ToString(ValueType value) {
106
16.3k
    return IntegralToString(value);
107
16.3k
  }
_ZN2yb19PlainIntegralTraitsINS_2ql9ErrorCodeEE8ToStringES2_
Line
Count
Source
105
4.52k
  static std::string ToString(ValueType value) {
106
4.52k
    return IntegralToString(value);
107
4.52k
  }
_ZN2yb19PlainIntegralTraitsIN7rocksdb11TimeoutCodeEE8ToStringES2_
Line
Count
Source
105
1
  static std::string ToString(ValueType value) {
106
1
    return IntegralToString(value);
107
1
  }
_ZN2yb19PlainIntegralTraitsINS_6tablet16RaftGroupStatePBEE8ToStringES2_
Line
Count
Source
105
41.9k
  static std::string ToString(ValueType value) {
106
41.9k
    return IntegralToString(value);
107
41.9k
  }
_ZN2yb19PlainIntegralTraitsINS_7tserver24TabletServerErrorPB_CodeEE8ToStringES2_
Line
Count
Source
105
43.6k
  static std::string ToString(ValueType value) {
106
43.6k
    return IntegralToString(value);
107
43.6k
  }
_ZN2yb19PlainIntegralTraitsINS_6client15ClientErrorCodeEE8ToStringES2_
Line
Count
Source
105
10
  static std::string ToString(ValueType value) {
106
10
    return IntegralToString(value);
107
10
  }
_ZN2yb19PlainIntegralTraitsINS_20TransactionErrorCodeEE8ToStringES1_
Line
Count
Source
105
628k
  static std::string ToString(ValueType value) {
106
628k
    return IntegralToString(value);
107
628k
  }
_ZN2yb19PlainIntegralTraitsIiE8ToStringEi
Line
Count
Source
105
148k
  static std::string ToString(ValueType value) {
106
148k
    return IntegralToString(value);
107
148k
  }
_ZN2yb19PlainIntegralTraitsINS_3rpc28ErrorStatusPB_RpcErrorCodePBEE8ToStringES2_
Line
Count
Source
105
179
  static std::string ToString(ValueType value) {
106
179
    return IntegralToString(value);
107
179
  }
108
};
109
110
template <class ValueType>
111
struct IntegralErrorTag : public IntegralBackedErrorTag<PlainIntegralTraits<ValueType>> {
112
};
113
114
// Extra error code assigned to status.
115
class StatusErrorCode {
116
 public:
117
  virtual uint8_t Category() const = 0;
118
  virtual size_t EncodedSize() const = 0;
119
  // Serialization should not be changed after error code is released, since it is
120
  // transferred over the wire.
121
  virtual uint8_t* Encode(uint8_t* out) const = 0;
122
  virtual std::string Message() const = 0;
123
124
21.9M
  virtual ~StatusErrorCode() = default;
125
};
126
127
template <class Tag>
128
class StatusErrorCodeImpl : public StatusErrorCode {
129
 public:
130
  typedef typename Tag::Value Value;
131
  // Category is a part of the wire protocol.
132
  // So it should not be changed after first release containing this category.
133
  // All used categories could be listed with the following command:
134
  // git grep -h -F "uint8_t kCategory" | awk '{ print $6 }' | sort -n
135
  static constexpr uint8_t kCategory = Tag::kCategory;
136
137
1.66M
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_13ErrorDelayTagEEC2ERKNS_9MonoDeltaE
Line
Count
Source
137
1
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEEC2ERKNSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEE
Line
Count
Source
137
4
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEEC2ERKNS1_15CDCErrorPB_CodeE
Line
Count
Source
137
1
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
Unexecuted instantiation: _ZN2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEEC2ERKx
_ZN2yb19StatusErrorCodeImplINS_8ErrnoTagEEC2ERKi
Line
Count
Source
137
1.42M
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEEC2ERKNS1_18MasterErrorPB_CodeE
Line
Count
Source
137
9.53k
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEEC2ERKNSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEE
Line
Count
Source
137
322
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEEC2ERKNS1_9ErrorCodeE
Line
Count
Source
137
12.3k
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEEC2ERKNS1_24TabletServerErrorPB_CodeE
Line
Count
Source
137
141k
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEEC2ERKNS1_21ConsensusErrorPB_CodeE
Line
Count
Source
137
12
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_19TransactionErrorTagEEC2ERKNS_20TransactionErrorCodeE
Line
Count
Source
137
11.6k
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEEC2ERKNS_13YBPgErrorCodeE
Line
Count
Source
137
11.6k
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
_ZN2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEEC2ERKNS1_16RaftGroupStatePBE
Line
Count
Source
137
49.2k
  explicit StatusErrorCodeImpl(const Value& value) : value_(value) {}
138
2.04M
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_8ErrnoTagEEC2EOi
Line
Count
Source
138
1.39M
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEEC2EOx
Line
Count
Source
138
585
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEEC2EOx
Line
Count
Source
138
627
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEEC2EOx
Line
Count
Source
138
620
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEEC2EOx
Line
Count
Source
138
632
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEEC2EOx
Line
Count
Source
138
622
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEEC2EOx
Line
Count
Source
138
614
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEEC2EOx
Line
Count
Source
138
604
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEEC2EOx
Line
Count
Source
138
657
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEEC2EOx
Line
Count
Source
138
531
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEEC2EONS_13YBPgErrorCodeE
Line
Count
Source
138
155k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
Unexecuted instantiation: _ZN2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEEC2EONS1_9ErrorCodeE
_ZN2yb19StatusErrorCodeImplIN7rocksdb15TimeoutErrorTagEEC2EONS1_11TimeoutCodeE
Line
Count
Source
138
176
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_19TransactionErrorTagEEC2EONS_20TransactionErrorCodeE
Line
Count
Source
138
344k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEEC2EONSt3__16vectorINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEENS8_ISA_EEEE
Line
Count
Source
138
18
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEEC2EONS_29PgsqlResponsePB_RequestStatusE
Line
Count
Source
138
1.03k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_10OpIndexTagEEC2EOm
Line
Count
Source
138
1.03k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEEC2EONS1_24TabletServerErrorPB_CodeE
Line
Count
Source
138
127k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEEC2EONS_9MonoDeltaE
Line
Count
Source
138
6
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEEC2EONS1_15ClientErrorCodeE
Line
Count
Source
138
3
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEEC2EONS1_18MasterErrorPB_CodeE
Line
Count
Source
138
9.34k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
_ZN2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEEC2EONS1_28ErrorStatusPB_RpcErrorCodePBE
Line
Count
Source
138
1.27k
  explicit StatusErrorCodeImpl(Value&& value) : value_(std::move(value)) {}
139
140
  explicit StatusErrorCodeImpl(const Status& status);
141
142
  static boost::optional<StatusErrorCodeImpl> FromStatus(const Status& status);
143
144
  static boost::optional<Value> ValueFromStatus(const Status& status);
145
146
3.80M
  uint8_t Category() const override {
147
3.80M
    return kCategory;
148
3.80M
  }
_ZNK2yb19StatusErrorCodeImplINS_19TransactionErrorTagEE8CategoryEv
Line
Count
Source
146
478k
  uint8_t Category() const override {
147
478k
    return kCategory;
148
478k
  }
_ZNK2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEE8CategoryEv
Line
Count
Source
146
19.2k
  uint8_t Category() const override {
147
19.2k
    return kCategory;
148
19.2k
  }
_ZNK2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEE8CategoryEv
Line
Count
Source
146
12.3k
  uint8_t Category() const override {
147
12.3k
    return kCategory;
148
12.3k
  }
_ZNK2yb19StatusErrorCodeImplINS_8ErrnoTagEE8CategoryEv
Line
Count
Source
146
2.81M
  uint8_t Category() const override {
147
2.81M
    return kCategory;
148
2.81M
  }
_ZNK2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEE8CategoryEv
Line
Count
Source
146
167k
  uint8_t Category() const override {
147
167k
    return kCategory;
148
167k
  }
_ZNK2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEE8CategoryEv
Line
Count
Source
146
4
  uint8_t Category() const override {
147
4
    return kCategory;
148
4
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEE8CategoryEv
Line
Count
Source
146
1.40k
  uint8_t Category() const override {
147
1.40k
    return kCategory;
148
1.40k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEE8CategoryEv
Line
Count
Source
146
1.65k
  uint8_t Category() const override {
147
1.65k
    return kCategory;
148
1.65k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEE8CategoryEv
Line
Count
Source
146
1.91k
  uint8_t Category() const override {
147
1.91k
    return kCategory;
148
1.91k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEE8CategoryEv
Line
Count
Source
146
2.04k
  uint8_t Category() const override {
147
2.04k
    return kCategory;
148
2.04k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEE8CategoryEv
Line
Count
Source
146
2.25k
  uint8_t Category() const override {
147
2.25k
    return kCategory;
148
2.25k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEE8CategoryEv
Line
Count
Source
146
2.23k
  uint8_t Category() const override {
147
2.23k
    return kCategory;
148
2.23k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEE8CategoryEv
Line
Count
Source
146
2.21k
  uint8_t Category() const override {
147
2.21k
    return kCategory;
148
2.21k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEE8CategoryEv
Line
Count
Source
146
2.22k
  uint8_t Category() const override {
147
2.22k
    return kCategory;
148
2.22k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEE8CategoryEv
Line
Count
Source
146
2.40k
  uint8_t Category() const override {
147
2.40k
    return kCategory;
148
2.40k
  }
_ZNK2yb19StatusErrorCodeImplINS_13ErrorDelayTagEE8CategoryEv
Line
Count
Source
146
1
  uint8_t Category() const override {
147
1
    return kCategory;
148
1
  }
_ZNK2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEE8CategoryEv
Line
Count
Source
146
2
  uint8_t Category() const override {
147
2
    return kCategory;
148
2
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEE8CategoryEv
Line
Count
Source
146
239k
  uint8_t Category() const override {
147
239k
    return kCategory;
148
239k
  }
_ZNK2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEE8CategoryEv
Line
Count
Source
146
49.2k
  uint8_t Category() const override {
147
49.2k
    return kCategory;
148
49.2k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEE8CategoryEv
_ZNK2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEE8CategoryEv
Line
Count
Source
146
358
  uint8_t Category() const override {
147
358
    return kCategory;
148
358
  }
_ZNK2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEE8CategoryEv
Line
Count
Source
146
12
  uint8_t Category() const override {
147
12
    return kCategory;
148
12
  }
_ZNK2yb19StatusErrorCodeImplIN7rocksdb15TimeoutErrorTagEE8CategoryEv
Line
Count
Source
146
176
  uint8_t Category() const override {
147
176
    return kCategory;
148
176
  }
_ZNK2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEE8CategoryEv
Line
Count
Source
146
1.03k
  uint8_t Category() const override {
147
1.03k
    return kCategory;
148
1.03k
  }
_ZNK2yb19StatusErrorCodeImplINS_10OpIndexTagEE8CategoryEv
Line
Count
Source
146
2.07k
  uint8_t Category() const override {
147
2.07k
    return kCategory;
148
2.07k
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEE8CategoryEv
Line
Count
Source
146
6
  uint8_t Category() const override {
147
6
    return kCategory;
148
6
  }
_ZNK2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEE8CategoryEv
Line
Count
Source
146
3
  uint8_t Category() const override {
147
3
    return kCategory;
148
3
  }
_ZNK2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEE8CategoryEv
Line
Count
Source
146
1.27k
  uint8_t Category() const override {
147
1.27k
    return kCategory;
148
1.27k
  }
149
150
7.14M
  size_t EncodedSize() const override {
151
7.14M
    return Tag::EncodedSize(value_);
152
7.14M
  }
_ZNK2yb19StatusErrorCodeImplINS_19TransactionErrorTagEE11EncodedSizeEv
Line
Count
Source
150
713k
  size_t EncodedSize() const override {
151
713k
    return Tag::EncodedSize(value_);
152
713k
  }
_ZNK2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEE11EncodedSizeEv
Line
Count
Source
150
37.7k
  size_t EncodedSize() const override {
151
37.7k
    return Tag::EncodedSize(value_);
152
37.7k
  }
_ZNK2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEE11EncodedSizeEv
Line
Count
Source
150
24.7k
  size_t EncodedSize() const override {
151
24.7k
    return Tag::EncodedSize(value_);
152
24.7k
  }
_ZNK2yb19StatusErrorCodeImplINS_8ErrnoTagEE11EncodedSizeEv
Line
Count
Source
150
5.63M
  size_t EncodedSize() const override {
151
5.63M
    return Tag::EncodedSize(value_);
152
5.63M
  }
_ZNK2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEE11EncodedSizeEv
Line
Count
Source
150
334k
  size_t EncodedSize() const override {
151
334k
    return Tag::EncodedSize(value_);
152
334k
  }
_ZNK2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEE11EncodedSizeEv
Line
Count
Source
150
8
  size_t EncodedSize() const override {
151
8
    return Tag::EncodedSize(value_);
152
8
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEE11EncodedSizeEv
Line
Count
Source
150
1.06k
  size_t EncodedSize() const override {
151
1.06k
    return Tag::EncodedSize(value_);
152
1.06k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEE11EncodedSizeEv
Line
Count
Source
150
1.17k
  size_t EncodedSize() const override {
151
1.17k
    return Tag::EncodedSize(value_);
152
1.17k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEE11EncodedSizeEv
Line
Count
Source
150
1.25k
  size_t EncodedSize() const override {
151
1.25k
    return Tag::EncodedSize(value_);
152
1.25k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEE11EncodedSizeEv
Line
Count
Source
150
1.24k
  size_t EncodedSize() const override {
151
1.24k
    return Tag::EncodedSize(value_);
152
1.24k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEE11EncodedSizeEv
Line
Count
Source
150
1.26k
  size_t EncodedSize() const override {
151
1.26k
    return Tag::EncodedSize(value_);
152
1.26k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEE11EncodedSizeEv
Line
Count
Source
150
1.24k
  size_t EncodedSize() const override {
151
1.24k
    return Tag::EncodedSize(value_);
152
1.24k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEE11EncodedSizeEv
Line
Count
Source
150
1.22k
  size_t EncodedSize() const override {
151
1.22k
    return Tag::EncodedSize(value_);
152
1.22k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEE11EncodedSizeEv
Line
Count
Source
150
1.20k
  size_t EncodedSize() const override {
151
1.20k
    return Tag::EncodedSize(value_);
152
1.20k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEE11EncodedSizeEv
Line
Count
Source
150
1.31k
  size_t EncodedSize() const override {
151
1.31k
    return Tag::EncodedSize(value_);
152
1.31k
  }
_ZNK2yb19StatusErrorCodeImplINS_13ErrorDelayTagEE11EncodedSizeEv
Line
Count
Source
150
2
  size_t EncodedSize() const override {
151
2
    return Tag::EncodedSize(value_);
152
2
  }
_ZNK2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEE11EncodedSizeEv
Line
Count
Source
150
2
  size_t EncodedSize() const override {
151
2
    return Tag::EncodedSize(value_);
152
2
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEE11EncodedSizeEv
Line
Count
Source
150
282k
  size_t EncodedSize() const override {
151
282k
    return Tag::EncodedSize(value_);
152
282k
  }
_ZNK2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEE11EncodedSizeEv
Line
Count
Source
150
98.4k
  size_t EncodedSize() const override {
151
98.4k
    return Tag::EncodedSize(value_);
152
98.4k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEE11EncodedSizeEv
_ZNK2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEE11EncodedSizeEv
Line
Count
Source
150
682
  size_t EncodedSize() const override {
151
682
    return Tag::EncodedSize(value_);
152
682
  }
_ZNK2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEE11EncodedSizeEv
Line
Count
Source
150
24
  size_t EncodedSize() const override {
151
24
    return Tag::EncodedSize(value_);
152
24
  }
_ZNK2yb19StatusErrorCodeImplIN7rocksdb15TimeoutErrorTagEE11EncodedSizeEv
Line
Count
Source
150
352
  size_t EncodedSize() const override {
151
352
    return Tag::EncodedSize(value_);
152
352
  }
_ZNK2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEE11EncodedSizeEv
Line
Count
Source
150
2.07k
  size_t EncodedSize() const override {
151
2.07k
    return Tag::EncodedSize(value_);
152
2.07k
  }
_ZNK2yb19StatusErrorCodeImplINS_10OpIndexTagEE11EncodedSizeEv
Line
Count
Source
150
2.07k
  size_t EncodedSize() const override {
151
2.07k
    return Tag::EncodedSize(value_);
152
2.07k
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEE11EncodedSizeEv
Line
Count
Source
150
12
  size_t EncodedSize() const override {
151
12
    return Tag::EncodedSize(value_);
152
12
  }
_ZNK2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEE11EncodedSizeEv
Line
Count
Source
150
6
  size_t EncodedSize() const override {
151
6
    return Tag::EncodedSize(value_);
152
6
  }
_ZNK2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEE11EncodedSizeEv
Line
Count
Source
150
2.54k
  size_t EncodedSize() const override {
151
2.54k
    return Tag::EncodedSize(value_);
152
2.54k
  }
153
154
3.57M
  uint8_t* Encode(uint8_t* out) const override {
155
3.57M
    return Tag::Encode(value_, out);
156
3.57M
  }
_ZNK2yb19StatusErrorCodeImplINS_19TransactionErrorTagEE6EncodeEPh
Line
Count
Source
154
356k
  uint8_t* Encode(uint8_t* out) const override {
155
356k
    return Tag::Encode(value_, out);
156
356k
  }
_ZNK2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEE6EncodeEPh
Line
Count
Source
154
18.8k
  uint8_t* Encode(uint8_t* out) const override {
155
18.8k
    return Tag::Encode(value_, out);
156
18.8k
  }
_ZNK2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEE6EncodeEPh
Line
Count
Source
154
12.3k
  uint8_t* Encode(uint8_t* out) const override {
155
12.3k
    return Tag::Encode(value_, out);
156
12.3k
  }
_ZNK2yb19StatusErrorCodeImplINS_8ErrnoTagEE6EncodeEPh
Line
Count
Source
154
2.81M
  uint8_t* Encode(uint8_t* out) const override {
155
2.81M
    return Tag::Encode(value_, out);
156
2.81M
  }
_ZNK2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEE6EncodeEPh
Line
Count
Source
154
167k
  uint8_t* Encode(uint8_t* out) const override {
155
167k
    return Tag::Encode(value_, out);
156
167k
  }
_ZNK2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEE6EncodeEPh
Line
Count
Source
154
4
  uint8_t* Encode(uint8_t* out) const override {
155
4
    return Tag::Encode(value_, out);
156
4
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEE6EncodeEPh
Line
Count
Source
154
531
  uint8_t* Encode(uint8_t* out) const override {
155
531
    return Tag::Encode(value_, out);
156
531
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEE6EncodeEPh
Line
Count
Source
154
585
  uint8_t* Encode(uint8_t* out) const override {
155
585
    return Tag::Encode(value_, out);
156
585
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEE6EncodeEPh
Line
Count
Source
154
627
  uint8_t* Encode(uint8_t* out) const override {
155
627
    return Tag::Encode(value_, out);
156
627
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEE6EncodeEPh
Line
Count
Source
154
620
  uint8_t* Encode(uint8_t* out) const override {
155
620
    return Tag::Encode(value_, out);
156
620
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEE6EncodeEPh
Line
Count
Source
154
632
  uint8_t* Encode(uint8_t* out) const override {
155
632
    return Tag::Encode(value_, out);
156
632
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEE6EncodeEPh
Line
Count
Source
154
622
  uint8_t* Encode(uint8_t* out) const override {
155
622
    return Tag::Encode(value_, out);
156
622
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEE6EncodeEPh
Line
Count
Source
154
614
  uint8_t* Encode(uint8_t* out) const override {
155
614
    return Tag::Encode(value_, out);
156
614
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEE6EncodeEPh
Line
Count
Source
154
604
  uint8_t* Encode(uint8_t* out) const override {
155
604
    return Tag::Encode(value_, out);
156
604
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEE6EncodeEPh
Line
Count
Source
154
657
  uint8_t* Encode(uint8_t* out) const override {
155
657
    return Tag::Encode(value_, out);
156
657
  }
_ZNK2yb19StatusErrorCodeImplINS_13ErrorDelayTagEE6EncodeEPh
Line
Count
Source
154
1
  uint8_t* Encode(uint8_t* out) const override {
155
1
    return Tag::Encode(value_, out);
156
1
  }
_ZNK2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEE6EncodeEPh
Line
Count
Source
154
1
  uint8_t* Encode(uint8_t* out) const override {
155
1
    return Tag::Encode(value_, out);
156
1
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEE6EncodeEPh
Line
Count
Source
154
141k
  uint8_t* Encode(uint8_t* out) const override {
155
141k
    return Tag::Encode(value_, out);
156
141k
  }
_ZNK2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEE6EncodeEPh
Line
Count
Source
154
49.2k
  uint8_t* Encode(uint8_t* out) const override {
155
49.2k
    return Tag::Encode(value_, out);
156
49.2k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEE6EncodeEPh
_ZNK2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEE6EncodeEPh
Line
Count
Source
154
340
  uint8_t* Encode(uint8_t* out) const override {
155
340
    return Tag::Encode(value_, out);
156
340
  }
_ZNK2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEE6EncodeEPh
Line
Count
Source
154
12
  uint8_t* Encode(uint8_t* out) const override {
155
12
    return Tag::Encode(value_, out);
156
12
  }
_ZNK2yb19StatusErrorCodeImplIN7rocksdb15TimeoutErrorTagEE6EncodeEPh
Line
Count
Source
154
176
  uint8_t* Encode(uint8_t* out) const override {
155
176
    return Tag::Encode(value_, out);
156
176
  }
_ZNK2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEE6EncodeEPh
Line
Count
Source
154
1.03k
  uint8_t* Encode(uint8_t* out) const override {
155
1.03k
    return Tag::Encode(value_, out);
156
1.03k
  }
_ZNK2yb19StatusErrorCodeImplINS_10OpIndexTagEE6EncodeEPh
Line
Count
Source
154
1.03k
  uint8_t* Encode(uint8_t* out) const override {
155
1.03k
    return Tag::Encode(value_, out);
156
1.03k
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEE6EncodeEPh
Line
Count
Source
154
6
  uint8_t* Encode(uint8_t* out) const override {
155
6
    return Tag::Encode(value_, out);
156
6
  }
_ZNK2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEE6EncodeEPh
Line
Count
Source
154
3
  uint8_t* Encode(uint8_t* out) const override {
155
3
    return Tag::Encode(value_, out);
156
3
  }
_ZNK2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEE6EncodeEPh
Line
Count
Source
154
1.27k
  uint8_t* Encode(uint8_t* out) const override {
155
1.27k
    return Tag::Encode(value_, out);
156
1.27k
  }
157
158
18.3M
  const Value& value() const {
159
18.3M
    return value_;
160
18.3M
  }
_ZNK2yb19StatusErrorCodeImplINS_19TransactionErrorTagEE5valueEv
Line
Count
Source
158
520k
  const Value& value() const {
159
520k
    return value_;
160
520k
  }
_ZNK2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEE5valueEv
Line
Count
Source
158
48.0k
  const Value& value() const {
159
48.0k
    return value_;
160
48.0k
  }
_ZNK2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEE5valueEv
Line
Count
Source
158
31.7k
  const Value& value() const {
159
31.7k
    return value_;
160
31.7k
  }
_ZNK2yb19StatusErrorCodeImplINS_8ErrnoTagEE5valueEv
Line
Count
Source
158
952k
  const Value& value() const {
159
952k
    return value_;
160
952k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEE5valueEv
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEE5valueEv
Line
Count
Source
158
5.49k
  const Value& value() const {
159
5.49k
    return value_;
160
5.49k
  }
_ZNK2yb19StatusErrorCodeImplINS_13ErrorDelayTagEE5valueEv
Line
Count
Source
158
1
  const Value& value() const {
159
1
    return value_;
160
1
  }
_ZNK2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEE5valueEv
Line
Count
Source
158
4
  const Value& value() const {
159
4
    return value_;
160
4
  }
_ZNK2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEE5valueEv
Line
Count
Source
158
1
  const Value& value() const {
159
1
    return value_;
160
1
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEE5valueEv
Line
Count
Source
158
760k
  const Value& value() const {
159
760k
    return value_;
160
760k
  }
_ZNK2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEE5valueEv
Line
Count
Source
158
6.53k
  const Value& value() const {
159
6.53k
    return value_;
160
6.53k
  }
_ZNK2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEE5valueEv
Line
Count
Source
158
797k
  const Value& value() const {
159
797k
    return value_;
160
797k
  }
_ZNK2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEE5valueEv
Line
Count
Source
158
31
  const Value& value() const {
159
31
    return value_;
160
31
  }
_ZNK2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEE5valueEv
Line
Count
Source
158
776k
  const Value& value() const {
159
776k
    return value_;
160
776k
  }
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEE5valueEv
Line
Count
Source
158
6.74k
  const Value& value() const {
159
6.74k
    return value_;
160
6.74k
  }
_ZNK2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEE5valueEv
Line
Count
Source
158
14.4M
  const Value& value() const {
159
14.4M
    return value_;
160
14.4M
  }
_ZNK2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEE5valueEv
Line
Count
Source
158
8.67k
  const Value& value() const {
159
8.67k
    return value_;
160
8.67k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEE5valueEv
161
162
1.73M
  std::string Message() const override {
163
1.73M
    return Tag::ToMessage(value_);
164
1.73M
  }
_ZNK2yb19StatusErrorCodeImplINS_19TransactionErrorTagEE7MessageEv
Line
Count
Source
162
136k
  std::string Message() const override {
163
136k
    return Tag::ToMessage(value_);
164
136k
  }
_ZNK2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEE7MessageEv
Line
Count
Source
162
7.77k
  std::string Message() const override {
163
7.77k
    return Tag::ToMessage(value_);
164
7.77k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEE7MessageEv
_ZNK2yb19StatusErrorCodeImplINS_8ErrnoTagEE7MessageEv
Line
Count
Source
162
1.42M
  std::string Message() const override {
163
1.42M
    return Tag::ToMessage(value_);
164
1.42M
  }
_ZNK2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEE7MessageEv
Line
Count
Source
162
110k
  std::string Message() const override {
163
110k
    return Tag::ToMessage(value_);
164
110k
  }
_ZNK2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEE7MessageEv
Line
Count
Source
162
4
  std::string Message() const override {
163
4
    return Tag::ToMessage(value_);
164
4
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEE7MessageEv
_ZNK2yb19StatusErrorCodeImplINS_13ErrorDelayTagEE7MessageEv
Line
Count
Source
162
1
  std::string Message() const override {
163
1
    return Tag::ToMessage(value_);
164
1
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEE7MessageEv
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEE7MessageEv
Line
Count
Source
162
2.01k
  std::string Message() const override {
163
2.01k
    return Tag::ToMessage(value_);
164
2.01k
  }
_ZNK2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEE7MessageEv
Line
Count
Source
162
49.2k
  std::string Message() const override {
163
49.2k
    return Tag::ToMessage(value_);
164
49.2k
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEE7MessageEv
_ZNK2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEE7MessageEv
Line
Count
Source
162
12
  std::string Message() const override {
163
12
    return Tag::ToMessage(value_);
164
12
  }
_ZNK2yb19StatusErrorCodeImplIN7rocksdb15TimeoutErrorTagEE7MessageEv
Line
Count
Source
162
176
  std::string Message() const override {
163
176
    return Tag::ToMessage(value_);
164
176
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEE7MessageEv
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_10OpIndexTagEE7MessageEv
_ZNK2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEE7MessageEv
Line
Count
Source
162
6
  std::string Message() const override {
163
6
    return Tag::ToMessage(value_);
164
6
  }
_ZNK2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEE7MessageEv
Line
Count
Source
162
3
  std::string Message() const override {
163
3
    return Tag::ToMessage(value_);
164
3
  }
Unexecuted instantiation: _ZNK2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEE7MessageEv
165
166
 private:
167
  Value value_;
168
};
169
170
template <class Tag>
171
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const StatusErrorCodeImpl<Tag>& rhs) {
172
  return lhs.value() == rhs.value();
173
}
174
175
template <class Tag>
176
16.4M
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
16.4M
  return lhs.value() == rhs;
178
16.4M
}
Unexecuted instantiation: _ZN2ybeqINS_19TransactionErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
_ZN2ybeqINS_6master14MasterErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
176
29.6k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
29.6k
  return lhs.value() == rhs;
178
29.6k
}
Unexecuted instantiation: _ZN2ybeqINS_2ql10QLErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Unexecuted instantiation: _ZN2ybeqINS_13PgsqlErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
_ZN2ybeqINS_8ErrnoTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
Line
Count
Source
176
593k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
593k
  return lhs.value() == rhs;
178
593k
}
_ZN2ybeqINS_13ErrorDelayTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
Line
Count
Source
176
1
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
1
  return lhs.value() == rhs;
178
1
}
_ZN2ybeqINS_20StringVectorErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
Line
Count
Source
176
4
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
4
  return lhs.value() == rhs;
178
4
}
_ZN2ybeqINS_7tserver20TabletServerErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
176
632k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
632k
  return lhs.value() == rhs;
178
632k
}
_ZN2ybeqINS_6tablet22RaftGroupStateErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
176
6.54k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
6.54k
  return lhs.value() == rhs;
178
6.54k
}
_ZN2ybeqINS_21PgsqlRequestStatusTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
Line
Count
Source
176
776k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
776k
  return lhs.value() == rhs;
178
776k
}
_ZN2ybeqINS_6client14ClientErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
176
13.8M
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
13.8M
  return lhs.value() == rhs;
178
13.8M
}
_ZN2ybeqINS_3rpc11RpcErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
176
8.67k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
8.67k
  return lhs.value() == rhs;
178
8.67k
}
_ZN2ybeqINS_9consensus17ConsensusErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
176
619k
bool operator==(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
177
619k
  return lhs.value() == rhs;
178
619k
}
179
180
template <class Tag>
181
3
bool operator==(const typename Tag::Value& lhs, const StatusErrorCodeImpl<Tag>& rhs) {
182
3
  return lhs == rhs.value();
183
3
}
184
185
template <class Tag>
186
bool operator!=(const StatusErrorCodeImpl<Tag>& lhs, const StatusErrorCodeImpl<Tag>& rhs) {
187
  return lhs.value() != rhs.value();
188
}
189
190
template <class Tag>
191
384k
bool operator!=(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
192
384k
  return lhs.value() != rhs;
193
384k
}
Unexecuted instantiation: _ZN2ybneINS_19TransactionErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
Unexecuted instantiation: _ZN2ybneINS_9consensus17ConsensusErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
_ZN2ybneINS_2ql10QLErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
191
15.8k
bool operator!=(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
192
15.8k
  return lhs.value() != rhs;
193
15.8k
}
_ZN2ybneINS_6master14MasterErrorTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS4_5ValueE
Line
Count
Source
191
13.5k
bool operator!=(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
192
13.5k
  return lhs.value() != rhs;
193
13.5k
}
_ZN2ybneINS_8ErrnoTagEEEbRKNS_19StatusErrorCodeImplIT_EERKNS3_5ValueE
Line
Count
Source
191
355k
bool operator!=(const StatusErrorCodeImpl<Tag>& lhs, const typename Tag::Value& rhs) {
192
355k
  return lhs.value() != rhs;
193
355k
}
194
195
template <class Tag>
196
bool operator!=(const typename Tag::Value& lhs, const StatusErrorCodeImpl<Tag>& rhs) {
197
  return lhs != rhs.value();
198
}
199
200
struct StatusCategoryDescription {
201
  uint8_t id = 0;
202
  const std::string* name = nullptr;
203
  std::function<size_t(const uint8_t*)> decode_size;
204
  std::function<std::string(const uint8_t*)> to_string;
205
206
5.28M
  StatusCategoryDescription() = default;
207
208
  template <class Tag>
209
268k
  static StatusCategoryDescription Make(const std::string* name_) {
210
268k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
268k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh202EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh203EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh204EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh205EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh206EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh207EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh208EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh209EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_12TestErrorTagILh210EEEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_13ErrorDelayTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_20StringVectorErrorTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
11
  static StatusCategoryDescription Make(const std::string* name_) {
210
11
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11
  }
_ZN2yb25StatusCategoryDescription4MakeINS_3cdc11CDCErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11.1k
  static StatusCategoryDescription Make(const std::string* name_) {
210
11.1k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11.1k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_9consensus17ConsensusErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
15.8k
  static StatusCategoryDescription Make(const std::string* name_) {
210
15.8k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
15.8k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_6master14MasterErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
15.8k
  static StatusCategoryDescription Make(const std::string* name_) {
210
15.8k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
15.8k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_2ql10QLErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
11.3k
  static StatusCategoryDescription Make(const std::string* name_) {
210
11.3k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
11.3k
  }
_ZN2yb25StatusCategoryDescription4MakeIN7rocksdb15TimeoutErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
17.1k
  static StatusCategoryDescription Make(const std::string* name_) {
210
17.1k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
17.1k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_6tablet22RaftGroupStateErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
15.8k
  static StatusCategoryDescription Make(const std::string* name_) {
210
15.8k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
15.8k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_7tserver20TabletServerErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
15.8k
  static StatusCategoryDescription Make(const std::string* name_) {
210
15.8k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
15.8k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_7tserver20TabletServerDelayTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
15.8k
  static StatusCategoryDescription Make(const std::string* name_) {
210
15.8k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
15.8k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_6client14ClientErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
15.8k
  static StatusCategoryDescription Make(const std::string* name_) {
210
15.8k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
15.8k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_13PgsqlErrorTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
17.1k
  static StatusCategoryDescription Make(const std::string* name_) {
210
17.1k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
17.1k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_21PgsqlRequestStatusTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
13.6k
  static StatusCategoryDescription Make(const std::string* name_) {
210
13.6k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
13.6k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_10OpIndexTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
13.6k
  static StatusCategoryDescription Make(const std::string* name_) {
210
13.6k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
13.6k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_22MinRunningRequestIdTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
17.1k
  static StatusCategoryDescription Make(const std::string* name_) {
210
17.1k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
17.1k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_19TransactionErrorTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
17.1k
  static StatusCategoryDescription Make(const std::string* name_) {
210
17.1k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
17.1k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_22SplitChildTabletIdsTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
17.1k
  static StatusCategoryDescription Make(const std::string* name_) {
210
17.1k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
17.1k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_8ErrnoTagEEES0_PKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE
Line
Count
Source
209
20.6k
  static StatusCategoryDescription Make(const std::string* name_) {
210
20.6k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
20.6k
  }
_ZN2yb25StatusCategoryDescription4MakeINS_3rpc11RpcErrorTagEEES0_PKNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE
Line
Count
Source
209
17.2k
  static StatusCategoryDescription Make(const std::string* name_) {
210
17.2k
    return StatusCategoryDescription{Tag::kCategory, name_, &Tag::DecodeSize, &Tag::DecodeToString};
211
17.2k
  }
212
};
213
214
class StatusCategoryRegisterer {
215
 public:
216
  explicit StatusCategoryRegisterer(const StatusCategoryDescription& description);
217
};
218
219
template <class Tag>
220
StatusErrorCodeImpl<Tag>::StatusErrorCodeImpl(const Status& status)
221
18.1M
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_19TransactionErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
473k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
32.0k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_2ql10QLErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
15.8k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_8ErrnoTagEEC2ERKNS_6StatusE
Line
Count
Source
221
946k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
Unexecuted instantiation: _ZN2yb19StatusErrorCodeImplINS_13PgsqlErrorTagEEC2ERKNS_6StatusE
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh202EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh203EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh204EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh205EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh206EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh207EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh208EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh209EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_12TestErrorTagILh210EEEEC2ERKNS_6StatusE
Line
Count
Source
221
5.49k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_13ErrorDelayTagEEC2ERKNS_6StatusE
Line
Count
Source
221
1
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_20StringVectorErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
4
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_3cdc11CDCErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
154
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_7tserver20TabletServerErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
632k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_6tablet22RaftGroupStateErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
6.54k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_9consensus17ConsensusErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
797k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_22SplitChildTabletIdsTagEEC2ERKNS_6StatusE
Line
Count
Source
221
31
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_21PgsqlRequestStatusTagEEC2ERKNS_6StatusE
Line
Count
Source
221
776k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_7tserver20TabletServerDelayTagEEC2ERKNS_6StatusE
Line
Count
Source
221
6.73k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_6client14ClientErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
14.4M
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
_ZN2yb19StatusErrorCodeImplINS_3rpc11RpcErrorTagEEC2ERKNS_6StatusE
Line
Count
Source
221
8.67k
    : value_(Tag::Decode(status.ErrorData(Tag::kCategory))) {}
Unexecuted instantiation: _ZN2yb19StatusErrorCodeImplINS_22MinRunningRequestIdTagEEC2ERKNS_6StatusE
222
223
template <class Tag>
224
boost::optional<StatusErrorCodeImpl<Tag>> StatusErrorCodeImpl<Tag>::FromStatus(
225
305k
    const Status& status) {
226
305k
  const auto* error_data = status.ErrorData(Tag::kCategory);
227
305k
  if (!error_data) {
228
177k
    return boost::none;
229
177k
  }
230
127k
  return StatusErrorCodeImpl<Tag>(Tag::Decode(error_data));
231
127k
}
232
233
template <class Tag>
234
boost::optional<typename StatusErrorCodeImpl<Tag>::Value> StatusErrorCodeImpl<Tag>::ValueFromStatus(
235
1.21k
    const Status& status) {
236
1.21k
  const auto* error_data = status.ErrorData(Tag::kCategory);
237
1.21k
  if (!error_data) {
238
5
    return boost::none;
239
5
  }
240
1.20k
  return Tag::Decode(error_data);
241
1.20k
}
_ZN2yb19StatusErrorCodeImplINS_6master14MasterErrorTagEE15ValueFromStatusERKNS_6StatusE
Line
Count
Source
235
187
    const Status& status) {
236
187
  const auto* error_data = status.ErrorData(Tag::kCategory);
237
187
  if (!error_data) {
238
5
    return boost::none;
239
5
  }
240
182
  return Tag::Decode(error_data);
241
182
}
_ZN2yb19StatusErrorCodeImplINS_10OpIndexTagEE15ValueFromStatusERKNS_6StatusE
Line
Count
Source
235
1.02k
    const Status& status) {
236
1.02k
  const auto* error_data = status.ErrorData(Tag::kCategory);
237
1.02k
  if (!error_data) {
238
0
    return boost::none;
239
0
  }
240
1.02k
  return Tag::Decode(error_data);
241
1.02k
}
242
243
} // namespace yb
244
245
#endif // YB_UTIL_STATUS_EC_H