Lines Matching defs:id
23 using syncable::Id;
65 const Id& id) {
66 MutableEntry entry(trans, syncable::GET_BY_ID, id);
77 VLOG(1) << "Item conflicting because its parent not yet committed. Id: "
78 << id;
80 VLOG(1) << "No set for conflicting entry id " << id << ". There should "
125 entry.Get(syncable::ID),
137 // our present ID.
150 MutableEntry server_update(trans, syncable::GET_BY_ID, id);
186 Id parentid = entryi.Get(syncable::SERVER_PARENT_ID);
194 // parent id would cause a loop. We don't need more general loop detection
220 Id parentid = entry.Get(syncable::PARENT_ID);
231 Id id = parentid;
232 while (!id.IsRoot()) {
233 if (!binary_search(conflict_set->begin(), conflict_set->end(), id))
235 Entry parent(trans, syncable::GET_BY_ID, id);
239 id = parent.Get(syncable::PARENT_ID);
242 id = parentid;
243 while (!id.IsRoot()) {
244 MutableEntry parent(trans, syncable::GET_BY_ID, id);
245 if (!binary_search(conflict_set->begin(), conflict_set->end(), id))
247 VLOG(1) << "Giving directory a new id so we can undelete it " << parent;
253 id = parent.Get(syncable::PARENT_ID);
266 Id parent_id = entry.Get(syncable::SERVER_PARENT_ID);
277 Id id = parent_id;
280 Id reroot_id = syncable::kNullId;
283 while (!id.IsRoot() && --loop_detection >= 0) {
284 Entry parent(trans, syncable::GET_BY_ID, id);
288 reroot_id = id;
292 if (!binary_search(conflict_set->begin(), conflict_set->end(), id)) {
307 id = parent.Get(syncable::PARENT_ID);
311 if (id == entry.Get(syncable::ID))
314 reroot_id = id;
317 id = parent_id;
318 while (!id.IsRoot() && id != reroot_id) {
319 if (!binary_search(conflict_set->begin(), conflict_set->end(), id)) {
322 MutableEntry entry(trans, syncable::GET_BY_ID, id);
327 Id parent_id = entry.Get(syncable::PARENT_ID);
333 id = entry.Get(syncable::PARENT_ID);
409 LOG(ERROR) << " Bad ID:" << *i;
426 set<Id>::const_iterator conflicting_item_it;
430 Id id = *conflicting_item_it;
431 map<Id, ConflictSet*>::const_iterator item_set_it =
432 progress.IdToConflictSetFind(id);
436 switch (ProcessSimpleConflict(&trans, id)) {
439 int conflict_count = (simple_conflict_count_map_[id] += 2);
441 &id, &id + 1, status);
468 set<Id> children_of_dirs_merged_last_round;