MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / insertDirty

Function insertDirty

src/jrd/cch.cpp:157–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155
156
157static inline void insertDirty(BufferControl* bcb, BufferDesc* bdb)
158{
159 if (bdb->bdb_dirty.que_forward != &bdb->bdb_dirty)
160 return;
161
162 Sync dirtySync(&bcb->bcb_syncDirtyBdbs, "insertDirty");
163 dirtySync.lock(SYNC_EXCLUSIVE);
164
165 if (bdb->bdb_dirty.que_forward != &bdb->bdb_dirty)
166 return;
167
168 bcb->bcb_dirty_count++;
169 QUE_INSERT(bcb->bcb_dirty, bdb->bdb_dirty);
170}
171
172static inline void removeDirty(BufferControl* bcb, BufferDesc* bdb)
173{

Callers 2

CCH_markFunction · 0.85
CCH_releaseFunction · 0.85

Calls 2

QUE_INSERTFunction · 0.85
lockMethod · 0.45

Tested by

no test coverage detected