(xid string, ns uint64)
| 349 | } |
| 350 | |
| 351 | func (m *mapper) uid(xid string, ns uint64) uint64 { |
| 352 | if !m.opt.NewUids { |
| 353 | if uid, err := strconv.ParseUint(xid, 0, 64); err == nil { |
| 354 | m.xids.BumpTo(uid) |
| 355 | return uid |
| 356 | } |
| 357 | } |
| 358 | |
| 359 | return m.lookupUid(xid, ns) |
| 360 | } |
| 361 | |
| 362 | func (m *mapper) lookupUid(xid string, ns uint64) uint64 { |
| 363 | // We create a copy of xid string here because it is stored in |
no test coverage detected