Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing store version type in apoc.monitor.kernel() #2951

Merged
merged 1 commit into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/src/main/java/apoc/result/KernelInfoResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class KernelInfoResult {

public String databaseName;

public long storeLogVersion;
public String storeLogVersion;

public String storeCreationDate;

Expand All @@ -25,7 +25,7 @@ public KernelInfoResult(
String storeId,
Date kernelStartTime,
String databaseName,
long storeLogVersion,
String storeLogVersion,
Date storeCreationDate) {

SimpleDateFormat format = new SimpleDateFormat(apoc.date.Date.DEFAULT_FORMAT);
Expand Down
2 changes: 1 addition & 1 deletion full/src/main/java/apoc/monitor/Kernel.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Stream<KernelInfoResult> kernel() {
database.getStoreId().toString(),
startDate,
graphDatabaseService.databaseName(),
database.getLegacyStoreId().getStoreVersion(),
database.getStoreId().getStoreVersionUserString(),
new Date(database.getStoreId().getCreationTime())
));
}
Expand Down
1 change: 0 additions & 1 deletion full/src/test/java/apoc/monitor/KernelProcedureTest.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package apoc.monitor;

import apoc.date.Date;
import apoc.date.DateExpiry;
import apoc.util.TestUtil;
import org.junit.Before;
import org.junit.Rule;
Expand Down