fix: only monotonically update dataset (#2479)

Make sure we only update the latest version if it's actually newer. This
is important if there are concurrent queries, as they can take different
amounts of time.
This commit is contained in:
Will Jones
2025-07-01 08:29:37 -07:00
committed by GitHub
parent 1dadb2aefa
commit b12ebfed4c

View File

@@ -129,7 +129,9 @@ impl DatasetRef {
dataset: ref mut ds,
..
} => {
*ds = dataset;
if dataset.manifest().version > ds.manifest().version {
*ds = dataset;
}
}
_ => unreachable!("Dataset should be in latest mode at this point"),
}