summaryrefslogtreecommitdiffstats
path: root/include/shard
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-06-26 11:39:46 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-06-26 11:39:46 -0400
commit594d0b46c338c21b06009e4f769ecb9040d0b51e (patch)
tree139e6e0c6afccd0568fd5b89d7506a0ec8d4892e /include/shard
parent9cddbef913eb62b6a11940cc8d7aff164e974ccb (diff)
downloaddynamic-extension-594d0b46c338c21b06009e4f769ecb9040d0b51e.tar.gz
PGM Shard bugfixes
Diffstat (limited to 'include/shard')
-rw-r--r--include/shard/PGM.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/shard/PGM.h b/include/shard/PGM.h
index f84fcc4..1622d7e 100644
--- a/include/shard/PGM.h
+++ b/include/shard/PGM.h
@@ -223,7 +223,7 @@ public:
size_t get_memory_usage() {
- return 0;
+ return m_pgm.size_in_bytes();
}
private:
@@ -257,7 +257,7 @@ private:
}
- return (m_data[idx].rec.key <= key) ? idx : m_reccnt;
+ return (m_data[idx].rec.key >= key) ? idx : m_reccnt;
}
Wrapped<R>* m_data;