Esempio n. 1
0
File: Types.cs Progetto: tli2/FASTER
        public override bool ConcurrentWriter(ref CacheKey key, ref CacheValue src, ref CacheValue dst, ref RecordInfo recordInfo, long address)
        {
            var old = Interlocked.Exchange(ref dst, src);

            sizeTracker.AddTrackedSize(dst.GetSize - old.GetSize);
            return(true);
        }
Esempio n. 2
0
        public override bool ConcurrentWriter(ref CacheKey key, ref CacheValue input, ref CacheValue src, ref CacheValue dst, ref CacheValue output, ref UpsertInfo upsertInfo)
        {
            var old = Interlocked.Exchange(ref dst, src);

            sizeTracker.AddTrackedSize(dst.GetSize - old.GetSize);
            return(true);
        }