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