Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
tiny improve
Change-Id: I02658e1173c8c23e44d1dc53d2a03d33d02e4338
  • Loading branch information
zhoney committed May 22, 2019
commit 5d352a196f4b6afba02357d2ed8ac2d2de16bfa7
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public abstract class MysqlStore extends AbstractBackendStore<Session> {

private final Map<HugeType, MysqlTable> tables;

protected MysqlSessions sessions;
private MysqlSessions sessions;

public MysqlStore(final BackendStoreProvider provider,
final String database, final String store) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ protected Collection<MysqlTable> tables() {
@Override
public void increaseCounter(HugeType type, long increment) {
this.checkSessionConnected();
MysqlSessions.Session session = super.sessions.session();
MysqlSessions.Session session = this.session(type);
this.counters.increaseCounter(session, type, increment);
}

@Override
public long getCounter(HugeType type) {
this.checkSessionConnected();
MysqlSessions.Session session = super.sessions.session();
MysqlSessions.Session session = this.session(type);
return this.counters.getCounter(session, type);
}
}
Expand Down