use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV3_0 method readNeoStoreRecord.
private NeoStoreRecord readNeoStoreRecord(ReadableChannel channel) throws IOException {
long nextProp = channel.getLong();
NeoStoreRecord record = new NeoStoreRecord();
record.setNextProp(nextProp);
return record;
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class MetaDataStoreCheckTest method shouldNotReportAnythingForRecordWithConsistentReferenceToProperty.
@Test
public void shouldNotReportAnythingForRecordWithConsistentReferenceToProperty() throws Exception {
// given
NeoStoreRecord record = new NeoStoreRecord();
record.setNextProp(add(inUse(new PropertyRecord(7))).getId());
// when
ConsistencyReport.NeoStoreConsistencyReport report = check(record);
// then
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class MetaDataStoreCheckTest method shouldReportPropertyNotInUse.
@Test
public void shouldReportPropertyNotInUse() throws Exception {
// given
NeoStoreRecord record = new NeoStoreRecord();
PropertyRecord property = add(notInUse(new PropertyRecord(7)));
record.setNextProp(property.getId());
// when
ConsistencyReport.NeoStoreConsistencyReport report = check(record);
// then
verify(report).propertyNotInUse(property);
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class MetaDataStoreCheckTest method shouldNotReportAnythingForRecordWithNoPropertyReference.
@Test
public void shouldNotReportAnythingForRecordWithNoPropertyReference() throws Exception {
// given
NeoStoreRecord record = new NeoStoreRecord();
// when
ConsistencyReport.NeoStoreConsistencyReport report = check(record);
// then
verifyNoMoreInteractions(report);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class OwnerCheckTest method shouldNotReportOrphanIfOwnedByNeoStore.
@Test
public void shouldNotReportOrphanIfOwnedByNeoStore() throws Exception {
// given
RecordAccessStub records = new RecordAccessStub();
OwnerCheck decorator = new OwnerCheck(true);
PropertyRecord record = inUse(new PropertyRecord(42));
ConsistencyReport.PropertyConsistencyReport report = check(ConsistencyReport.PropertyConsistencyReport.class, decorator.decoratePropertyChecker(dummyPropertyChecker()), record, records);
NeoStoreRecord master = inUse(new NeoStoreRecord());
master.setNextProp(42);
ConsistencyReport.NeoStoreConsistencyReport masterReport = check(ConsistencyReport.NeoStoreConsistencyReport.class, decorator.decorateNeoStoreChecker(dummyNeoStoreCheck()), master, records);
// when
decorator.scanForOrphanChains(ProgressMonitorFactory.NONE);
records.checkDeferred();
// then
verifyNoMoreInteractions(report);
verifyNoMoreInteractions(masterReport);
}
Aggregations