diff options
author | Keuin <[email protected]> | 2023-10-22 23:20:42 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-10-22 23:20:42 +0800 |
commit | 0f5ea8826d1cecf7addf0cfcaa5771a9839a75b2 (patch) | |
tree | 4382e4bda0eec9194a76c43608721909ec86e5e1 /src/main | |
parent | 0d2a1cf9c8078c27f02721196918d91bc4b32e3d (diff) |
add data version field
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/keuin/blame/data/entry/LogEntry.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/keuin/blame/data/entry/LogEntry.java b/src/main/java/com/keuin/blame/data/entry/LogEntry.java index fba04be..851316f 100644 --- a/src/main/java/com/keuin/blame/data/entry/LogEntry.java +++ b/src/main/java/com/keuin/blame/data/entry/LogEntry.java @@ -63,6 +63,12 @@ public class LogEntry { public WorldPos objectPos = WorldPos.NULL_POS; + /** + * 2: the last version of Blame 1.x (last version written natively in MongoDB) + * 3: the first version of Blame 2.x (ClickHouse) + */ + public final int dataVersion = 3; + public LogEntry() { } @@ -176,5 +182,7 @@ public class LogEntry { BinaryStreamUtils.writeFixedString(os, subjectUUID.toString(), 36); // lowercase BinaryStreamUtils.writeInt64(os, timeMillis); + + BinaryStreamUtils.writeUnsignedInt16(os, dataVersion); } } |