Skip to content

Commit

Permalink
sst_file_writer.cc: for TOPLINGDB_WITH_TIMESTAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
rockeet committed Sep 19, 2022
1 parent 331715c commit 4775f2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion table/sst_file_writer.cc
Expand Up @@ -117,10 +117,11 @@ struct SstFileWriter::Rep {
}

Status Add(const Slice& user_key, const Slice& value, ValueType value_type) {
#if defined(TOPLINGDB_WITH_TIMESTAMP)
if (internal_comparator.user_comparator()->timestamp_size() != 0) {
return Status::InvalidArgument("Timestamp size mismatch");
}

#endif
return AddImpl(user_key, value, value_type);
}

Expand Down

0 comments on commit 4775f2b

Please sign in to comment.