Skip to content

Commit

Permalink
tiny improve
Browse files Browse the repository at this point in the history
Change-Id: I02658e1173c8c23e44d1dc53d2a03d33d02e4338
  • Loading branch information
zhoney committed May 22, 2019
1 parent ebcaa42 commit 5d352a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 5d352a1

Please sign in to comment.