Skip to content

Commit 9b71bab

Browse files
committed
QLS: add RemainingUnionDebt and SupplyUnionCredits actions
1 parent b70b426 commit 9b71bab

File tree

2 files changed

+185
-48
lines changed

2 files changed

+185
-48
lines changed

src/Database/LSMTree/Common.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,11 +275,11 @@ instance Show (BlobRef m b) where
275275
-- includes the cost of completing merges that were part of the union's input
276276
-- tables.
277277
newtype UnionDebt = UnionDebt Int
278-
deriving stock (Show, Eq)
278+
deriving stock (Show, Eq, Ord)
279279

280280
-- | Credits are used to pay off 'UnionDebt', completing a @union@ in the
281281
-- process.
282282
--
283283
-- A union credit corresponds to a single merging step being performed.
284284
newtype UnionCredits = UnionCredits Int
285-
deriving stock (Show, Eq)
285+
deriving stock (Show, Eq, Ord)

0 commit comments

Comments
 (0)