Exemplo n.º 1
0
        public unsafe bool Update(int currentVersion, StorageEnvironmentOptions options, HeaderAccessor headerAccessor, out int versionAfterUpgrade)
        {
            headerAccessor.Modify(header =>
            {
                Memory.Set(header->Journal.Reserved, 0, JournalInfo.NumberOfReservedBytes);

                if (options.JournalExists(header->Journal.LastSyncedJournal))
                {
                    header->Journal.Flags = JournalInfoFlags.None;
                }
                else
                {
                    header->Journal.Flags = JournalInfoFlags.IgnoreMissingLastSyncJournal;
                }
            });

            versionAfterUpgrade = 23;

            return(true);
        }