MCPcopy Create free account
hub / github.com/couchbase/forestdb / bcache_flush_immutable

Function bcache_flush_immutable

src/blockcache.cc:1248–1257  ·  view source on GitHub ↗

flush and synchronize a batch of contiguous dirty immutable blocks in file dirty blocks will be changed to clean blocks (not discarded) Note: This function can be invoked as part of background flushing

Source from the content-addressed store, hash-verified

1246// dirty blocks will be changed to clean blocks (not discarded)
1247// Note: This function can be invoked as part of background flushing
1248fdb_status bcache_flush_immutable(struct filemgr *file)
1249{
1250 struct fnamedic_item *fname_item;
1251 fdb_status status = FDB_RESULT_SUCCESS;
1252 fname_item = file->bcache;
1253 if (fname_item) {
1254 status = _flush_dirty_blocks(fname_item, true, true, true);
1255 }
1256 return status;
1257}
1258
1259// remove all dirty blocks of the FILE
1260// (they are only discarded and not written back)

Callers 1

filemgr_flush_immutableFunction · 0.85

Calls 1

_flush_dirty_blocksFunction · 0.85

Tested by

no test coverage detected