aboutsummaryrefslogtreecommitdiffstats
path: root/log_db/src/engine.rs
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2025-02-03 18:58:49 +0200
committerJan Tuomi <jan@jantuomi.fi>2025-02-03 18:58:49 +0200
commitf60b372db09f4ed091a55d44ac5013926f4cf64b (patch)
tree14791c3f1c24f94564123bfb0cccb7a7ca684eaa /log_db/src/engine.rs
parent35687a08b48337c9989d59fa033580766c6e0947 (diff)
Support adding nullable fields
Diffstat (limited to 'log_db/src/engine.rs')
-rw-r--r--log_db/src/engine.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/log_db/src/engine.rs b/log_db/src/engine.rs
index 4391451..d028ee0 100644
--- a/log_db/src/engine.rs
+++ b/log_db/src/engine.rs
@@ -163,6 +163,9 @@ impl<R: Recordable> Engine<R> {
for ForwardLogReaderItem { record, index } in
ForwardLogReader::new_with_index(metadata_file, data_file, from_index)
{
+ // Validate that the values in the record are compatible with the schema
+ record.validate(&self.config.fields)?;
+
let log_key = LogKey::new(segnum, index);
if record.tombstone {