Skip to content

Commit

Permalink
Rename HA_RESTORED
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTyson committed Jul 25, 2024
1 parent 00cf499 commit 07e8bef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Stellar-ledger.x
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ enum HotArchiveBucketEntryType
{
HA_METAENTRY = -1, // Bucket metadata, should come first.
HA_ARCHIVED = 0, // Entry is Archived
HA_RESTORED = 1, // Entry was previously HA_ARCHIVED, but was restored.
HA_LIVE = 1, // Entry was previously HA_ARCHIVED, or HA_DELETED, but
// has been added back to the live BucketList.
// Does not need to be persisted.
HA_DELETED = 2 // Entry deleted (Note: must be persisted in archive)
};
Expand Down Expand Up @@ -217,7 +218,7 @@ union HotArchiveBucketEntry switch (HotArchiveBucketEntryType type)
case HA_ARCHIVED:
LedgerEntry archivedEntry;

case HA_RESTORED:
case HA_LIVE:
case HA_DELETED:
LedgerKey key;
case HA_METAENTRY:
Expand Down

0 comments on commit 07e8bef

Please sign in to comment.