Prepare to add fdb implementation
Fixes a end iter deref and remove rpath from test
This commit is contained in:
@@ -596,7 +596,7 @@ struct __attribute__((__visibility__("hidden"))) VersionedMap::Impl {
|
||||
|
||||
finger.clear();
|
||||
|
||||
bool ignored;
|
||||
bool ignored = false;
|
||||
finger.push(root, ignored);
|
||||
|
||||
for (;;) {
|
||||
@@ -810,7 +810,7 @@ struct __attribute__((__visibility__("hidden"))) VersionedMap::Impl {
|
||||
Finger finger;
|
||||
if (continueKey.len == 0) {
|
||||
// Set finger to last entry in tree
|
||||
bool ignored;
|
||||
bool ignored = false;
|
||||
finger.push(latestRoot, ignored);
|
||||
uint32_t c;
|
||||
while ((c = child<std::memory_order_relaxed>(finger.backNode(), true,
|
||||
@@ -1120,7 +1120,7 @@ VersionedMap::Iterator &VersionedMap::Iterator::operator--() {
|
||||
|
||||
// Handle decrementing end
|
||||
if (impl->finger.searchPathSize() == 0) {
|
||||
bool ignored;
|
||||
bool ignored = false;
|
||||
impl->finger.push(
|
||||
impl->map->roots.getThreadSafeHandle().rootForVersion(impl->version),
|
||||
ignored);
|
||||
@@ -1247,7 +1247,7 @@ VersionedMap::Iterator VersionedMap::begin(int64_t version) const {
|
||||
result.impl = new (safe_malloc(sizeof(Iterator::Impl))) Iterator::Impl();
|
||||
result.impl->version = version;
|
||||
|
||||
bool ignored;
|
||||
bool ignored = false;
|
||||
result.impl->finger.push(
|
||||
impl->roots.getThreadSafeHandle().rootForVersion(version), ignored);
|
||||
if (result.impl->finger.backNode() == 0) {
|
||||
|
Reference in New Issue
Block a user