Skip to content

Commit

Permalink
[misc] remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Jan 14, 2020
1 parent 23bd79b commit b724868
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -777,10 +777,9 @@ public ServerPrepareResult prepare(String sql, boolean executeOnMaster) throws S
cmdPrologue();
lock.lock();
try {
if (options.cachePrepStmts && options.useServerPrepStmts) {

//search in cache first
if (options.cachePrepStmts) {
ServerPrepareResult pr = serverPrepareStatementCache.get(database + "-" + sql);

if (pr != null && pr.incrementShareCounter()) {
return pr;
}
Expand Down

0 comments on commit b724868

Please sign in to comment.