示例#1
0
 public ulong Commit(RocksDbAtomicWrite batch)
 {
     _trieMap.Checkpoint(CurrentVersion, batch);
     _repositoryManager.SetState(CurrentVersion, batch);
     return(CurrentVersion);
 }
示例#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);
 }