Skip to content

Commit 4e60b1b

Browse files
Jose-Angel Herrero Bajofacebook-github-bot
authored andcommitted
Fix comment for storage_create_witness_snapshot
Summary: as title Reviewed By: SarahDesouky Differential Revision: D72487813 Privacy Context Container: L1141030 fbshipit-source-id: 4d0ef93de01ac08ddbd4a5f7e89f12299586362c
1 parent bd0cd15 commit 4e60b1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wa_raft_storage.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@
274274
-callback storage_make_empty_snapshot(Name :: atom(), Identifier :: #raft_identifier{}, Path :: file:filename(), Position :: wa_raft_log:log_pos(), Config :: wa_raft_server:config(), Data :: dynamic()) -> ok | error().
275275
-optional_callback([storage_make_empty_snapshot/6]).
276276

277-
%% Create a new witness snapshot at the provided path, containing only the current
278-
%% position in storage, configuration, and virtual partition range information.
277+
%% Create a new witness snapshot at the provided path which must contain the current
278+
%% position in storage and configuration.
279279
%% The snapshot will be empty (without actual storage data) but will retain all
280280
%% necessary metadata. When loaded, this witness snapshot will reflect the exact
281281
%% position state of the original storage without the storage contents.

0 commit comments

Comments
 (0)