-
Notifications
You must be signed in to change notification settings - Fork 527
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
Add system schema store #1891
Add system schema store #1891
Changes from 1 commit
c887b6b
3e332b4
79603ae
25c5bcb
7e2d3a4
1c9f0b4
77e2d49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -550,10 +550,6 @@ public long getCounter(HugeType type) { | |
throw new UnsupportedOperationException( | ||
"HbaseGraphStore.getCounter()"); | ||
} | ||
|
||
public Session getSession() { | ||
return super.sessions.session(); | ||
} | ||
} | ||
|
||
public static class HbaseSystemStore extends HbaseGraphStore { | ||
|
@@ -578,7 +574,7 @@ protected List<String> tableNames() { | |
public void init() { | ||
super.init(); | ||
super.checkOpened(); | ||
Session session = super.getSession(); | ||
Session session = super.sessions.session(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can call this.checkOpened();
Session session = this.sessions.session(); |
||
String driverVersion = this.provider().driverVersion(); | ||
this.meta.writeVersion(session, driverVersion); | ||
LOG.info("Write down the backend version: {}", driverVersion); | ||
|
@@ -587,7 +583,7 @@ public void init() { | |
@Override | ||
public String storedVersion() { | ||
super.checkOpened(); | ||
Session session = super.getSession(); | ||
Session session = super.sessions.session(); | ||
return this.meta.readVersion(session); | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1095,10 +1095,6 @@ public void removeOlapTable(Id id) { | |
this.dropTable(db, table.table()); | ||
this.unregisterTableManager(this.olapTableName(id)); | ||
} | ||
|
||
public Session getSession() { | ||
return super.sessions.session(); | ||
} | ||
} | ||
|
||
public static class RocksDBSystemStore extends RocksDBGraphStore { | ||
|
@@ -1118,8 +1114,7 @@ public synchronized void init() { | |
Lock writeLock = this.storeLock().writeLock(); | ||
writeLock.lock(); | ||
try { | ||
super.checkOpened(); | ||
Session session = super.getSession(); | ||
Session session = super.sessions.session(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can call |
||
String driverVersion = this.provider().driverVersion(); | ||
this.meta.writeVersion(session, driverVersion); | ||
LOG.info("Write down the backend version: {}", driverVersion); | ||
|
@@ -1134,7 +1129,7 @@ public String storedVersion() { | |
readLock.lock(); | ||
try { | ||
super.checkOpened(); | ||
Session session = super.getSession(); | ||
Session session = super.sessions.session(); | ||
return this.meta.readVersion(session); | ||
} finally { | ||
readLock.unlock(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove "this.checkOpened()" since called in this.session()