summaryrefslogtreecommitdiffstats
path: root/include/shard
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2024-12-23 11:59:52 -0500
committerDouglas Rumbaugh <dbr4@psu.edu>2024-12-23 11:59:52 -0500
commitf57aa6aee34c5eccd296fbe6b655075c682e97ca (patch)
tree24a33e247bb7786fbc6685e2bace84124e0d2d09 /include/shard
parent2724b98da8699af150e850e66e92e0a832cd2e29 (diff)
downloaddynamic-extension-f57aa6aee34c5eccd296fbe6b655075c682e97ca.tar.gz
Began migrating benchmarks over to new interface
Diffstat (limited to 'include/shard')
-rw-r--r--include/shard/FSTrie.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/shard/FSTrie.h b/include/shard/FSTrie.h
index d720aad..59ff116 100644
--- a/include/shard/FSTrie.h
+++ b/include/shard/FSTrie.h
@@ -63,7 +63,7 @@ public:
std::sort(base, stop, std::less<Wrapped<R>>());
for (size_t i=0; i<buffer.get_record_count(); i++) {
- if (temp_buffer[i].is_deleted() || !temp_buffer[i].is_visible() || temp_buffer[i].rec.key == "") {
+ if (temp_buffer[i].is_deleted() || !temp_buffer[i].is_visible() || temp_buffer[i].rec.key[0] != '\0') {
continue;
}
@@ -124,7 +124,7 @@ public:
} else {
auto& cursor = cursors[now.version];
/* skip over records that have been deleted via tagging */
- if (!cursor.ptr->is_deleted() && cursor.ptr->rec.key != "") {
+ if (!cursor.ptr->is_deleted() && cursor.ptr->rec.key[0] != '\0') {
m_data[m_reccnt] = *cursor.ptr;
keys.push_back(std::string(m_data[m_reccnt].rec.key));