Пример #1
0
        internal void CommitWritingTransaction(IRootNode artRoot)
        {
            lock (_writeLock)
            {
                _writingTransaction = null;
                if (_lastCommited.Dereference())
                {
                    _lastCommited.Dispose();
                }

                _lastCommited = artRoot;
                _lastCommited.Commit();
                TryDequeWaiterForWritingTransaction();
            }
        }
Пример #2
0
 public ArtInMemoryKeyValueDB(IOffHeapAllocator allocator)
 {
     _lastCommited = ARTImplV.CreateEmptyRoot(allocator);
     _lastCommited.Commit();
 }