From f424bbb8c7115bde438f2aa011d412d9c70bc61c Mon Sep 17 00:00:00 2001 From: DarkGopher Date: Thu, 26 Jun 2025 12:01:58 +0200 Subject: [PATCH] Last 8b is size of record --- storage/hybrid/PML.txt | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/storage/hybrid/PML.txt b/storage/hybrid/PML.txt index 7fd64c5..1568404 100644 --- a/storage/hybrid/PML.txt +++ b/storage/hybrid/PML.txt @@ -9,19 +9,20 @@ This is PML format: [SID] is session ID [DATA] -0: - -1: - +0: - no data +1: - no data 2: new session ID 3: (key)|(val) - create and update DATA or (key) only for delete key -key && val in format: [length (int64)][gob data bytes with this length] - PML log file: ______________________________________________________ LOG stream... -OP | SID | DATA | | +OP | SID | DATA | LENGTH | | | ------------------------------------------------------ | --- // -- // -- // -- | +----- // -- // -- // -- | | | ------------------------------------------------------ | - ... .... ..... | -OP | SID | DATA | -______________________________________________________ V \ No newline at end of file + ... .... ..... | | | +______________________________________________________ | +OP | SID | DATA | LENGTH | | | +______________________________________________________ V + +... LENGTH is uint64 size of record \ No newline at end of file