Add double-backup test

Added a test with back-to-back backups.  This caused issues with the empty CDB file it created (on opening, couldn't cope with last key of empty).

So now backup won't roll the active journal if it is empty.
This commit is contained in:
Martin Sumner 2018-09-07 10:24:51 +01:00
parent daf0a1a607
commit 9a8ce88ed2
5 changed files with 85 additions and 38 deletions

View file

@ -284,7 +284,7 @@
{info, "Journal backup completed to path=~s with file_count=~w"}},
{"I0021",
{info, "Ingoring filename=~s with SQN=~w and JournalSQN=~w"}},
{"IC001",
{info, "Closed for reason ~w so maybe leaving garbage"}},
{"IC002",