| 5220 | |
| 5221 | |
| 5222 | void BufferDesc::downgrade(SyncType syncType) |
| 5223 | { |
| 5224 | // SH -> SH is no-op |
| 5225 | if (syncType == SYNC_SHARED && !bdb_writers) |
| 5226 | return; |
| 5227 | |
| 5228 | if (bdb_writers != 1) |
| 5229 | BUGCHECK(296); // inconsistent latch downgrade call |
| 5230 | |
| 5231 | // EX -> EX is no-op |
| 5232 | if (syncType == SYNC_EXCLUSIVE) |
| 5233 | return; |
| 5234 | |
| 5235 | --bdb_writers; |
| 5236 | |
| 5237 | bdb_exclusive = NULL; |
| 5238 | |
| 5239 | bdb_syncPage.downgrade(syncType); |
| 5240 | } |
| 5241 | |
| 5242 | |
| 5243 | void BufferDesc::release(thread_db* tdbb, bool repost) |
no outgoing calls
no test coverage detected