Last 8b is size of record
This commit is contained in:
parent
a460bc9f9d
commit
f424bbb8c7
1 changed files with 10 additions and 9 deletions
|
@ -9,19 +9,20 @@ This is PML format:
|
||||||
[SID] is session ID
|
[SID] is session ID
|
||||||
|
|
||||||
[DATA]
|
[DATA]
|
||||||
0: -
|
0: - no data
|
||||||
1: -
|
1: - no data
|
||||||
2: new session ID
|
2: new session ID
|
||||||
3: (key)|(val) - create and update DATA or (key) only for delete key
|
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:
|
PML log file:
|
||||||
______________________________________________________ LOG stream...
|
______________________________________________________ LOG stream...
|
||||||
OP | SID | DATA | |
|
OP | SID | DATA | LENGTH | | |
|
||||||
------------------------------------------------------ |
|
------------------------------------------------------ |
|
||||||
-- // -- // -- // -- |
|
----- // -- // -- // -- | | |
|
||||||
------------------------------------------------------ |
|
------------------------------------------------------ |
|
||||||
... .... ..... |
|
... .... ..... | | |
|
||||||
OP | SID | DATA |
|
______________________________________________________ |
|
||||||
______________________________________________________ V
|
OP | SID | DATA | LENGTH | | |
|
||||||
|
______________________________________________________ V
|
||||||
|
|
||||||
|
... LENGTH is uint64 size of record
|
Loading…
Add table
Add a link
Reference in a new issue