diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2024-12-23 11:59:52 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2024-12-23 11:59:52 -0500 |
| commit | f57aa6aee34c5eccd296fbe6b655075c682e97ca (patch) | |
| tree | 24a33e247bb7786fbc6685e2bace84124e0d2d09 /include | |
| parent | 2724b98da8699af150e850e66e92e0a832cd2e29 (diff) | |
| download | dynamic-extension-f57aa6aee34c5eccd296fbe6b655075c682e97ca.tar.gz | |
Began migrating benchmarks over to new interface
Diffstat (limited to 'include')
| -rw-r--r-- | include/shard/FSTrie.h | 4 |
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)); |