summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2025-02-04 14:52:18 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2025-02-04 14:52:18 -0500
commit5ee10c336581b68ba91c7048431809e3ccaf7e87 (patch)
tree39bf1963757ed1b0a0817dd58b99b09c83844b71 /include
parent4376f5f177a5766f496405921d8ede92a376773c (diff)
downloaddynamic-extension-5ee10c336581b68ba91c7048431809e3ccaf7e87.tar.gz
Bug fixes
Diffstat (limited to 'include')
-rw-r--r--include/framework/DynamicExtension.h3
-rw-r--r--include/framework/scheduling/Version.h3
2 files changed, 3 insertions, 3 deletions
diff --git a/include/framework/DynamicExtension.h b/include/framework/DynamicExtension.h
index 91bed98..ef36de3 100644
--- a/include/framework/DynamicExtension.h
+++ b/include/framework/DynamicExtension.h
@@ -445,6 +445,7 @@ private:
/* we first construct a shard from the buffer */
auto buffview = args->version->get_buffer();
assert(buffview.get_tail() != buffview.get_head());
+ size_t new_head = buffview.get_tail();
auto new_shard = std::make_shared<ShardType>(std::move(buffview));
@@ -471,7 +472,7 @@ private:
args->version->set_structure(std::move(structure));
}
- args->version->advance_buffer_head();
+ args->version->advance_buffer_head(new_head);
}
/* perform all of the reconstructions */
diff --git a/include/framework/scheduling/Version.h b/include/framework/scheduling/Version.h
index 9c62ea1..3e93202 100644
--- a/include/framework/scheduling/Version.h
+++ b/include/framework/scheduling/Version.h
@@ -84,8 +84,7 @@ public:
return version;
}
- bool advance_buffer_head() {
- auto new_head = m_buffer->get_buffer_view().get_tail();
+ bool advance_buffer_head(size_t new_head) {
m_buffer_head = new_head;
return m_buffer->advance_head(new_head);
}