diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2023-10-31 12:14:57 -0400 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2023-10-31 12:22:16 -0400 |
| commit | ca729108869b4143f1eea31f6dde9195decfec9c (patch) | |
| tree | fbfc9f2c943d392c380fab97e6ca85318226c122 /include/framework/structure/ExtensionStructure.h | |
| parent | 230831243a61f1ca1b1dd4319a4c5224b15d2657 (diff) | |
| download | dynamic-extension-ca729108869b4143f1eea31f6dde9195decfec9c.tar.gz | |
MutableBuffer: removed most concurrency control stuff
The buffer isn't responsible for a lot of CC anymore (just the append
operation), so this code was no longer necessary. Also removed the only
calls to some of these CC operations within the rest of the framework.
Diffstat (limited to 'include/framework/structure/ExtensionStructure.h')
| -rw-r--r-- | include/framework/structure/ExtensionStructure.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/framework/structure/ExtensionStructure.h b/include/framework/structure/ExtensionStructure.h index 2ced439..f5657af 100644 --- a/include/framework/structure/ExtensionStructure.h +++ b/include/framework/structure/ExtensionStructure.h @@ -93,11 +93,11 @@ public: inline bool merge_buffer(Buffer *buffer) { assert(can_merge_with(0, buffer->get_record_count())); + // FIXME: this step makes an extra copy of the buffer, + // which could be avoided by adjusting the shard + // reconstruction process a bit, possibly. buffer->start_merge(); merge_buffer_into_l0(buffer); - buffer->finish_merge(); - - buffer->truncate(); return true; } |