Ensure that checkpoints are ordered by position when querying for pruning.

This commit is contained in:
Kris Nuttycombe 2023-06-30 09:48:19 -06:00
parent 95745dd620
commit cd939f94c4
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ where
.prepare_cached(&format!( .prepare_cached(&format!(
"SELECT checkpoint_id, position "SELECT checkpoint_id, position
FROM {}_tree_checkpoints FROM {}_tree_checkpoints
ORDER BY position
LIMIT :limit", LIMIT :limit",
table_prefix table_prefix
)) ))