Skip to content

Commit 069607a

Browse files
committed
Add some text saying that LVHD redo-log ops must be idempotent
Signed-off-by: Jon Ludlam <[email protected]>
1 parent be6a1f0 commit 069607a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xapi/futures/thin-lvhd/thin-lvhd.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ fast query and update. All updates are appended to the redo-log to ensure
5353
they operate in O(1) time. The redo log updates are periodically flushed
5454
to the primary LVM metadata.
5555

56+
Since the operations are stored in the redo-log and will only be removed
57+
after the real metadata has been written, the implication is that it is
58+
possible for the operations to be performed more than once. This will
59+
occur if the xenvmd process exits between flushing to the real metadata
60+
and acknowledging the operations as completed. For this to work as expected,
61+
every individual operation stored in the redo-log _must_ be idempotent.
62+
5663
Note on running out of blocks
5764
-----------------------------
5865

0 commit comments

Comments
 (0)