|
|
@ -468,8 +468,8 @@ TEST_F(DBBasicTestWithTimestamp, ReseekToNextUserKey) { |
|
|
|
{ |
|
|
|
{ |
|
|
|
std::string ts_str = Timestamp(static_cast<uint64_t>(kNumKeys + 1), 0); |
|
|
|
std::string ts_str = Timestamp(static_cast<uint64_t>(kNumKeys + 1), 0); |
|
|
|
WriteBatch batch(0, 0, kTimestampSize); |
|
|
|
WriteBatch batch(0, 0, kTimestampSize); |
|
|
|
batch.Put("a", "new_value"); |
|
|
|
ASSERT_OK(batch.Put("a", "new_value")); |
|
|
|
batch.Put("b", "new_value"); |
|
|
|
ASSERT_OK(batch.Put("b", "new_value")); |
|
|
|
s = batch.AssignTimestamp(ts_str); |
|
|
|
s = batch.AssignTimestamp(ts_str); |
|
|
|
ASSERT_OK(s); |
|
|
|
ASSERT_OK(s); |
|
|
|
s = db_->Write(write_opts, &batch); |
|
|
|
s = db_->Write(write_opts, &batch); |
|
|
@ -1485,9 +1485,9 @@ TEST_P(DBBasicTestWithTimestampCompressionSettings, PutAndGetWithCompaction) { |
|
|
|
// at higher levels.
|
|
|
|
// at higher levels.
|
|
|
|
CompactionOptions compact_opt; |
|
|
|
CompactionOptions compact_opt; |
|
|
|
compact_opt.compression = kNoCompression; |
|
|
|
compact_opt.compression = kNoCompression; |
|
|
|
db_->CompactFiles(compact_opt, handles_[cf], |
|
|
|
ASSERT_OK(db_->CompactFiles(compact_opt, handles_[cf], |
|
|
|
collector->GetFlushedFiles(), |
|
|
|
collector->GetFlushedFiles(), |
|
|
|
static_cast<int>(kNumTimestamps - i)); |
|
|
|
static_cast<int>(kNumTimestamps - i))); |
|
|
|
collector->ClearFlushedFiles(); |
|
|
|
collector->ClearFlushedFiles(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1576,7 +1576,7 @@ TEST_F(DBBasicTestWithTimestamp, BatchWriteAndMultiGet) { |
|
|
|
batch.Put(handles_[cf], Key1(j), |
|
|
|
batch.Put(handles_[cf], Key1(j), |
|
|
|
"value_" + std::to_string(j) + "_" + std::to_string(i))); |
|
|
|
"value_" + std::to_string(j) + "_" + std::to_string(i))); |
|
|
|
} |
|
|
|
} |
|
|
|
batch.AssignTimestamp(write_ts); |
|
|
|
ASSERT_OK(batch.AssignTimestamp(write_ts)); |
|
|
|
ASSERT_OK(db_->Write(wopts, &batch)); |
|
|
|
ASSERT_OK(db_->Write(wopts, &batch)); |
|
|
|
|
|
|
|
|
|
|
|
verify_records_func(i, handles_[cf]); |
|
|
|
verify_records_func(i, handles_[cf]); |
|
|
|