Skip to content

Commit

Permalink
强制写库
Browse files Browse the repository at this point in the history
  • Loading branch information
chenlei2 committed May 1, 2018
1 parent a0efc42 commit ce08b8d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public Object invoke(Object proxy, Method method, Object[] args) throws Throwabl
// Invocation on ConnectionProxy interface coming in...
if (method.getName().equals("setTransactionIsolation") && args != null && (Integer) args[0] == Connection.TRANSACTION_SERIALIZABLE) {
args[0] = defaultTransactionIsolation();
ConnectionHold.FORCE_WRITE.set(Boolean.TRUE);
}
if (method.getName().equals("equals")) {
// We must avoid fetching a target Connection for "equals".
Expand Down

0 comments on commit ce08b8d

Please sign in to comment.