diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-10-30 14:25:28 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-10-30 14:29:43 -0400 |
| commit | ceffd8caf5e4e827e2cc4d6975507a66d88f77a9 (patch) | |
| tree | fa4b463a87cbaefcec6da274a8fb1edba792e8e3 /include/framework/structure | |
| parent | 39ae3e0441d8297a09197aba98bd494b5ada12c1 (diff) | |
| download | dynamic-extension-ceffd8caf5e4e827e2cc4d6975507a66d88f77a9.tar.gz | |
DynamicExtension: adjusted a few operations to ensure conistency
get_memory_usage, get_aux_memory_usage, get_record_count,
get_tombstone_count, and create_static_structure have been adjusted to
ensure that they pull from a consistent epoch, even if a change-over
occurs midway through the function.
These functions also now register with the epoch as a job, to ensure that
the epoch they are operating own isn't retired midway through the
function. Probably not a big issue for the accessors, but I could see it
being very important for create_static_structure.
Diffstat (limited to 'include/framework/structure')
| -rw-r--r-- | include/framework/structure/BufferView.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/framework/structure/BufferView.h b/include/framework/structure/BufferView.h index 14abedc..8dff2ef 100644 --- a/include/framework/structure/BufferView.h +++ b/include/framework/structure/BufferView.h @@ -116,6 +116,10 @@ public: return m_buffers; } + size_t size() { + return m_buffers.size(); + } + private: std::vector<Buffer *> m_buffers; size_t m_cutoff; |