File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -210,27 +210,21 @@ int TraceTransactionImpl::getWait()
210
210
211
211
unsigned TraceTransactionImpl::getIsolation ()
212
212
{
213
- switch (m_tran->tra_flags & (TRA_read_committed | TRA_rec_version | TRA_degree3 | TRA_read_consistency))
214
- {
215
- case TRA_degree3:
213
+ if (m_tran->tra_flags & TRA_degree3)
216
214
return ISOLATION_CONSISTENCY;
217
215
218
- case TRA_read_committed:
219
- return ISOLATION_READ_COMMITTED_NORECVER;
220
-
221
- case TRA_read_committed | TRA_rec_version:
222
- return ISOLATION_READ_COMMITTED_RECVER;
223
-
224
- case TRA_read_committed | TRA_rec_version | TRA_read_consistency:
225
- return ISOLATION_READ_COMMITTED_READ_CONSISTENCY;
216
+ if (m_tran->tra_flags & TRA_read_committed)
217
+ {
218
+ if (m_tran->tra_flags & TRA_read_consistency)
219
+ return ISOLATION_READ_COMMITTED_READ_CONSISTENCY;
226
220
227
- case 0 :
228
- return ISOLATION_CONCURRENCY ;
221
+ if (m_tran-> tra_flags & TRA_rec_version)
222
+ return ISOLATION_READ_COMMITTED_RECVER ;
229
223
230
- default :
231
- fb_assert (false );
232
- return ISOLATION_CONCURRENCY;
224
+ return ISOLATION_READ_COMMITTED_NORECVER;
233
225
}
226
+
227
+ return ISOLATION_CONCURRENCY;
234
228
}
235
229
236
230
ISC_INT64 TraceTransactionImpl::getInitialID ()
You can’t perform that action at this time.
0 commit comments