public ulong Commit(RocksDbAtomicWrite batch) { _trieMap.Checkpoint(CurrentVersion, batch); _repositoryManager.SetState(CurrentVersion, batch); return(CurrentVersion); }
internal void SetState(ulong version, RocksDbAtomicWrite tx) { LatestVersion = version; _versionRepository.SetVersion(_repositoryId, LatestVersion, tx); _versionRepository.SetVersion((uint)RepositoryType.MetaRepository, _versionFactory.CurrentVersion + 1, tx); }