Skip to content

Commit 4ffa37c

Browse files
author
litongxin
committed
remove whitespace
1 parent 0eb8d6f commit 4ffa37c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/storage/disk_table.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ bool DiskTable::Put(const std::string& pk, uint64_t time, const char* data, uint
225225
if (!bloom_filter_vec_[0].Valid(pk.c_str())) {
226226
bloom_filter_vec_[0].Set(pk.c_str());
227227
pk_cnt_vec_[0]->fetch_add(1, std::memory_order_relaxed);
228-
}
228+
}
229229
return true;
230230
} else {
231231
DEBUGLOG("Put failed. tid %u pid %u msg %s", id_, pid_, s.ToString().c_str());

src/storage/disk_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class BloomFilter {
147147
bool getBit(uint32_t bit);
148148

149149
uint32_t k_, bitset_size_,
150-
string_cnt_;
150+
string_cnt_;
151151
std::vector<std::shared_ptr<std::atomic<uint64_t>>> bits_;
152152
uint32_t base_[100] = {5, 7, 11, 13, 31, 37, 61};
153153
};

src/storage/table_test.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,7 +2023,7 @@ TEST_F(TableTest, GetRecordAbsTTL) {
20232023
ts_count += stats[i];
20242024
}
20252025
EXPECT_EQ(100, ts_count);
2026-
2026+
20272027
table->SchedGc();
20282028

20292029
EXPECT_EQ(140, (int64_t)table->GetRecordIdxCnt());
@@ -2128,7 +2128,7 @@ TEST_F(TableTest, GetRecordLatTTL) {
21282128

21292129
EXPECT_EQ(20, (int64_t)table->GetRecordPkCnt());
21302130
EXPECT_EQ(200, (int64_t)table->GetRecordIdxCnt());
2131-
2131+
21322132
table->SchedGc();
21332133
EXPECT_EQ(20, (int64_t)table->GetRecordPkCnt());
21342134
EXPECT_EQ(120, (int64_t)table->GetRecordIdxCnt());
@@ -2247,7 +2247,7 @@ TEST_F(TableTest, GetRecordAbsAndLatTTL) {
22472247

22482248
EXPECT_EQ(20, (int64_t)table->GetRecordPkCnt());
22492249
EXPECT_EQ(200, (int64_t)table->GetRecordIdxCnt());
2250-
2250+
22512251
table->SchedGc();
22522252
EXPECT_EQ(20, (int64_t)table->GetRecordPkCnt());
22532253
EXPECT_EQ(120, (int64_t)table->GetRecordIdxCnt());

0 commit comments

Comments
 (0)