summaryrefslogtreecommitdiffstats
path: root/include/framework/structure/ExtensionStructure.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/structure/ExtensionStructure.h')
-rw-r--r--include/framework/structure/ExtensionStructure.h6
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;
}