Table of Contents

Enum CharacterPersistOutcome

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

What became of one row of a batched character save.

public enum CharacterPersistOutcome : byte

Fields

Invalid = 5

The row was malformed (no id, no version, a claim for a different character) and was not attempted.

NotFound = 2

The character does not exist or has been deleted.

OwnershipLost = 4

The caller supplied a claim and no longer holds it. Another server is authoritative for the character, and the caller must stop simulating it rather than retry.

Replayed = 1

The row already holds exactly this version under this caller's claim: a replay of a write that landed, typically a transaction retried after its commit reply was lost. Nothing is missing, so callers treat it as Saved.

Saved = 0

The row was written.

Stale = 3

A newer version is already stored. Nothing is lost: the stored row is the newer of the two.

Remarks

The same distinctions the single-row save reports as error codes, per row, because one statement now speaks for many characters and each needs its own answer: a lost claim means the caller must stop simulating that character, a stale row means a newer write is already stored, and neither says anything about the rows around it.