Ensure that checkpoints are ordered by position when querying for pruning.
This commit is contained in:
parent
95745dd620
commit
cd939f94c4
|
@ -642,6 +642,7 @@ where
|
|||
.prepare_cached(&format!(
|
||||
"SELECT checkpoint_id, position
|
||||
FROM {}_tree_checkpoints
|
||||
ORDER BY position
|
||||
LIMIT :limit",
|
||||
table_prefix
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue