From 77fbd2610cc98f082b62c4ca6233f77acd6bb53b Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Sun, 14 Sep 2014 16:53:41 -0700 Subject: [PATCH] wal: add comment --- wal/wal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/wal/wal.go b/wal/wal.go index a534a6870..cdb010278 100644 --- a/wal/wal.go +++ b/wal/wal.go @@ -94,6 +94,7 @@ func Create(dirpath string) (*WAL, error) { } // OpenAtIndex opens the WAL at the given index. +// There MUST be an entry with given index written to WAL before. // The returned WAL is ready to read and the first record will be the given // index. The WAL cannot be appended to before reading out all of its // previous records.