Skip to content

Commit 4cf1079

Browse files
committed
add some interface
1 parent c9075b7 commit 4cf1079

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎src/main/java/org/tron/core/db2/core/SnapshotManager.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ public synchronized ISession buildSession(boolean forceEnable) {
9090
return new Session(this, disableOnExit);
9191
}
9292

93+
@Override
94+
public void setMode(boolean mode) {
95+
dbs.forEach(db -> db.setMode(mode));
96+
}
97+
9398
@Override
9499
public void add(IRevokingDB db) {
95100
RevokingDBWithCachingNewValue revokingDB = (RevokingDBWithCachingNewValue) db;

0 commit comments

Comments
 (0)