be/src/load/group_commit/wal/wal_info.cpp
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #include "load/group_commit/wal/wal_info.h" |
19 | | |
20 | | namespace doris { |
21 | | #include "common/compile_check_begin.h" |
22 | | |
23 | | WalInfo::WalInfo(int64_t wal_id, std::string wal_path, int32_t retry_num, int64_t start_time_ms) |
24 | 0 | : _wal_id(wal_id), |
25 | 0 | _wal_path(wal_path), |
26 | 0 | _retry_num(retry_num), |
27 | 0 | _start_time_ms(start_time_ms) {} |
28 | | |
29 | 0 | int64_t WalInfo::get_wal_id() { |
30 | 0 | return _wal_id; |
31 | 0 | } |
32 | | |
33 | 0 | std::string WalInfo::get_wal_path() { |
34 | 0 | return _wal_path; |
35 | 0 | } |
36 | | |
37 | 0 | int32_t WalInfo::get_retry_num() { |
38 | 0 | return _retry_num; |
39 | 0 | } |
40 | | |
41 | 0 | int64_t WalInfo::get_start_time_ms() { |
42 | 0 | return _start_time_ms; |
43 | 0 | } |
44 | | |
45 | 0 | void WalInfo::add_retry_num() { |
46 | 0 | _retry_num++; |
47 | 0 | } |
48 | | |
49 | | #include "common/compile_check_end.h" |
50 | | } // namespace doris |