示例#1
0
        internal PersistentSeries(AppendLog appendLog, long pid, UUID uuid, IPersistentOrderedMap <K, V> innerMap, bool allowBatches, bool isWriter,
                                  Action <bool, bool> disposeCallback = null)
        {
            _appendLog    = appendLog;
            _pid          = pid;
            _uuid         = uuid;
            _innerMap     = innerMap;
            _allowBatches = allowBatches;
            _isWriter     = isWriter;
            var outer = (_innerMap as SortedChunkedMap <K, V>)?.OuterMap as RemoteChunksSeries <K, V>;

            if (outer != null)
            {
                outer.ReadOnly = !_isWriter;
            }
            _disposeCallback = disposeCallback;
            Interlocked.Increment(ref RefCounter);
        }