mirror of
https://github.com/Green-Sky/crdt_tests.git
synced 2024-12-22 23:53:24 +01:00
meh, time to rewrite
This commit is contained in:
parent
a05e301e9b
commit
cc69678f9a
22
test2.cpp
22
test2.cpp
@ -189,6 +189,28 @@ namespace GreenCRDT {
|
|||||||
if (left_it == right_it) {
|
if (left_it == right_it) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// should be covered by the above, TODO: check and remove
|
||||||
|
if (left_it == list.end()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
//if (left_it->parent_left
|
||||||
|
|
||||||
|
// if it.left < parent_left
|
||||||
|
// -> insert
|
||||||
|
// else if it.left == parent_left // same left parent
|
||||||
|
// -> if it.right < parent_right
|
||||||
|
// -> keep looking ?
|
||||||
|
// -> else if it.right == parent_right
|
||||||
|
// -> if list_id.id < it.id
|
||||||
|
// -> insert
|
||||||
|
// -> else // we are in the "agent id is tie breaker" zone
|
||||||
|
// -> continue
|
||||||
|
// else // it.left > parent_left
|
||||||
|
// -> skip ?
|
||||||
|
|
||||||
|
|
||||||
|
left_it++;
|
||||||
} while (true);
|
} while (true);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user