| 101 | } |
| 102 | |
| 103 | bool MutableHashTree::insert(slice key, InsertCallback callback) { |
| 104 | if (!_root) |
| 105 | _root = MutableInterior::newRoot(_imRoot); |
| 106 | auto result = _root->insert(Target(key, &callback), 0); |
| 107 | if (!result) |
| 108 | return false; |
| 109 | _root = result; |
| 110 | return true; |
| 111 | } |
| 112 | |
| 113 | void MutableHashTree::set(slice key, Value val) { |
| 114 | if (val) |