Beispiel #1
0
        internal virtual void VerifyContext()
        {
            VersionContext versionContext          = VersionContextSupplier.VersionContext;
            long           lastClosedTransactionId = versionContext.LastClosedTransactionId();

            if (lastClosedTransactionId == long.MaxValue)
            {
                return;
            }
            if (IsPotentiallyReadingDirtyData(lastClosedTransactionId))
            {
                versionContext.MarkAsDirty();
            }
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private static <Key> boolean performLookup(ReadableState<Key> store, org.neo4j.io.pagecache.tracing.cursor.context.VersionContext versionContext, java.util.concurrent.ConcurrentMap<Key,ChangeEntry> changes, Key key, ValueSink sink) throws java.io.IOException
        private static bool PerformLookup <Key>(ReadableState <Key> store, VersionContext versionContext, ConcurrentMap <Key, ChangeEntry> changes, Key key, ValueSink sink)
        {
            ChangeEntry change = changes.get(key);

            if (change != null)
            {
                if (change.Version > versionContext.LastClosedTransactionId())
                {
                    versionContext.MarkAsDirty();
                }
                sink.Value(new BigEndianByteArrayBuffer(change.Data));
                return(true);
            }
            return(store.Lookup(key, sink));
        }