Skip to content

Commit 56203b9

Browse files
authored
fix: fix compile warnings (#1786)
1 parent 30ed2e1 commit 56203b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/storage/disk_table.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,12 +987,12 @@ DiskTableRowIterator::DiskTableRowIterator(rocksdb::DB* db, rocksdb::Iterator* i
987987
snapshot_(snapshot),
988988
record_idx_(1),
989989
expire_value_(expire_time, expire_cnt, ttl_type),
990-
row_(),
991990
pk_(pk),
992991
row_pk_(pk),
993992
ts_(ts),
994993
has_ts_idx_(has_ts_idx),
995-
ts_idx_(ts_idx) {}
994+
ts_idx_(ts_idx),
995+
row_() {}
996996

997997
DiskTableRowIterator::~DiskTableRowIterator() {
998998
delete it_;

src/storage/disk_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ class DiskTableRowIterator : public ::hybridse::vm::RowIterator {
298298
TTLSt expire_value_;
299299
std::string pk_;
300300
std::string row_pk_;
301-
bool has_ts_idx_;
302301
uint64_t ts_;
302+
bool has_ts_idx_;
303303
uint32_t ts_idx_;
304304
::hybridse::codec::Row row_;
305305
bool pk_valid_;

0 commit comments

Comments
 (0)