Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Neo4jsource
Commits
6958e77d
Commit
6958e77d
authored
4 years ago
by
MishaDemianenko
Browse files
Options
Download
Email Patches
Plain Diff
Review comments: same version to, paddings
parent
947a99b0
4.0
4.0.12
4.0.11
4.0.10
4.0.9
4.0.8
4.0.7
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
community/record-storage-engine/src/main/java/org/neo4j/kernel/impl/storemigration/IdGeneratorMigrator.java
+1
-1
...neo4j/kernel/impl/storemigration/IdGeneratorMigrator.java
community/record-storage-engine/src/test/java/org/neo4j/kernel/impl/storemigration/IdGeneratorMigratorTest.java
+1
-1
...j/kernel/impl/storemigration/IdGeneratorMigratorTest.java
with
2 additions
and
2 deletions
+2
-2
community/record-storage-engine/src/main/java/org/neo4j/kernel/impl/storemigration/IdGeneratorMigrator.java
+
1
-
1
View file @
6958e77d
...
...
@@ -172,7 +172,7 @@ public class IdGeneratorMigrator extends AbstractStoreMigrationParticipant
int
numberOfReservedLowIds
=
store
.
getNumberOfReservedLowIds
();
try
(
PageCursor
cursor
=
store
.
openPageCursorForReading
(
numberOfReservedLowIds
);
// about maxId: let's not concern ourselves with maxId here; if it's in the store it can be in the id generator
IdGenerator
idGenerator
=
rebuiltIdGenerators
.
create
(
pageCache
,
idFile
,
storeType
.
getIdType
(),
highId
,
true
,
Long
.
MAX_VALUE
,
readOnly
)
)
IdGenerator
idGenerator
=
rebuiltIdGenerators
.
create
(
pageCache
,
idFile
,
storeType
.
getIdType
(),
highId
,
true
,
Long
.
MAX_VALUE
,
readOnly
)
)
{
idGenerator
.
start
(
visitor
->
{
...
...
This diff is collapsed.
Click to expand it.
community/record-storage-engine/src/test/java/org/neo4j/kernel/impl/storemigration/IdGeneratorMigratorTest.java
+
1
-
1
View file @
6958e77d
...
...
@@ -97,7 +97,7 @@ class IdGeneratorMigratorTest
// when
IdGeneratorMigrator
migrator
=
new
IdGeneratorMigrator
(
fs
,
pageCache
,
defaults
()
);
migrator
.
migrate
(
db
,
upgrade
,
ProgressReporter
.
SILENT
,
StandardV3_4
.
STORE_VERSION
,
Standard
.
LATEST_STORE_VERSION
);
migrator
.
moveMigratedFiles
(
upgrade
,
db
,
StandardV3_4
.
STORE_VERSION
,
Standard
V4_0
.
STORE_VERSION
);
migrator
.
moveMigratedFiles
(
upgrade
,
db
,
StandardV3_4
.
STORE_VERSION
,
Standard
.
LATEST_
STORE_VERSION
);
// then
assertIdGeneratorContainsIds
(
db
.
idNodeStore
(),
IdType
.
NODE
,
500
,
1
,
3
,
nodeStoreStartId
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help