Example #1
0
File: Types.cs Project: 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);
        }
Example #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);
        }