Review Board 1.7.16


Fix ast_odbc_find_table function in res_odbc

Review Request #4405 - Created Feb. 4, 2015 and submitted

ibercom
11
ASTERISK-24742
Reviewers
asterisk-dev
Asterisk
This patch fixes an anomalous behavior in ast_odbc_find_table function with Asterisk Realtime.

- SELECT or INSERT operation generate a single command "SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED" in database engine before operation.
- UPDATE operation generates two commands "SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED" in database engine before operation.

The patch is trivial, just rearranges the call to ast_odbc_request_obj function. This isn't necessary when the table is cached.
Log mysql usage.
It is working for a week without problems.
Total:
1
Open:
0
Resolved:
1
Dropped:
0
Status:
From:
Description From Last Updated Status
Review request changed
Updated (Feb. 8, 2015, 9:23 p.m.)
  • changed from pending to submitted
Committed in revision 431638

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.