Skip to content

Commit f0029f5

Browse files
leftwoAlan Hanson
andauthored
Add new paginator options to all callers (#8494)
I think this caller was missed or a mis-merge happened to break things. Co-authored-by: Alan Hanson <alan@oxide.computer>
1 parent 682caa3 commit f0029f5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

nexus/db-queries/src/db/datastore/deployment.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,10 @@ impl DataStore {
12131213
{
12141214
use nexus_db_schema::schema::bp_pending_mgs_update_sp::dsl;
12151215

1216-
let mut paginator = Paginator::new(SQL_BATCH_SIZE);
1216+
let mut paginator = Paginator::new(
1217+
SQL_BATCH_SIZE,
1218+
dropshot::PaginationOrder::Ascending,
1219+
);
12171220
while let Some(p) = paginator.next() {
12181221
let batch = paginated(
12191222
dsl::bp_pending_mgs_update_sp,
@@ -1244,7 +1247,10 @@ impl DataStore {
12441247

12451248
let mut bbs = BTreeMap::new();
12461249

1247-
let mut paginator = Paginator::new(SQL_BATCH_SIZE);
1250+
let mut paginator = Paginator::new(
1251+
SQL_BATCH_SIZE,
1252+
dropshot::PaginationOrder::Ascending,
1253+
);
12481254
while let Some(p) = paginator.next() {
12491255
let batch = paginated(
12501256
dsl::hw_baseboard_id,

0 commit comments

Comments
 (0)