![]() |
CernVM-FS
2.12.0
|
Public Member Functions | |
ObjectHeader () | |
char * | GetDescription () |
void | SetDescription (char *description) |
unsigned char * | GetData () |
Public Attributes | |
uint64_t | txn_id |
uint32_t | size_data |
uint32_t | size_desc |
union { | |
int32_t refcnt | |
int32_t neg_nbytes_written | |
}; | |
cvmcache_object_type | type |
struct cvmcache_hash | id |
Header of the data pieces in the cache. After the object header, the zero-terminated description and the object data follows.
Definition at line 43 of file cvmfs_cache_ram.cc.
|
inline |
Definition at line 44 of file cvmfs_cache_ram.cc.
|
inline |
Definition at line 66 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::ram_pread(), and PluginRamCache::ram_write_txn().
|
inline |
Definition at line 53 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::ram_listing_begin(), and PluginRamCache::ram_obj_info().
|
inline |
Definition at line 59 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::ram_start_txn().
union { ... } |
During a transaction, neg_nbytes_written is used to track the number of already written bytes. On commit, refcnt is set to 1.
struct cvmcache_hash ObjectHeader::id |
Definition at line 94 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::OnBlockMove(), PluginRamCache::ram_commit_txn(), and PluginRamCache::ram_start_txn().
int32_t ObjectHeader::neg_nbytes_written |
Definition at line 91 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::ram_commit_txn(), and PluginRamCache::ram_write_txn().
int32_t ObjectHeader::refcnt |
Definition at line 90 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::DoShrink(), PluginRamCache::ram_chrefcnt(), PluginRamCache::ram_commit_txn(), and PluginRamCache::ram_start_txn().
uint32_t ObjectHeader::size_data |
Can be zero.
Definition at line 80 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::ram_commit_txn(), PluginRamCache::ram_pread(), PluginRamCache::ram_start_txn(), and PluginRamCache::ram_write_txn().
uint32_t ObjectHeader::size_desc |
String length + 1 (null terminated) or null if the description is NULL.
Definition at line 84 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::ram_start_txn().
uint64_t ObjectHeader::txn_id |
Set during a running transaction so that we know where to look for pointers when the memory block gets compacted. Once committed, this is uint64_t(-1).
Definition at line 76 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::OnBlockMove(), PluginRamCache::ram_commit_txn(), and PluginRamCache::ram_start_txn().
cvmcache_object_type ObjectHeader::type |
Definition at line 93 of file cvmfs_cache_ram.cc.
Referenced by PluginRamCache::DoShrink(), PluginRamCache::OnBlockMove(), PluginRamCache::ram_chrefcnt(), PluginRamCache::ram_commit_txn(), PluginRamCache::ram_listing_begin(), and PluginRamCache::ram_start_txn().