| 747 | } |
| 748 | |
| 749 | Future<uint64_t> CollectionContext::getMetadataVersion() { |
| 750 | // FIXME: Wow how many abstractions does this violate at once? |
| 751 | Future<Optional<FDBStandalone<StringRef>>> fov = cx->getTransaction()->tr->get(StringRef(unbound->getVersionKey())); |
| 752 | Future<uint64_t> ret = map(fov, [](Optional<FDBStandalone<StringRef>> ov) -> uint64_t { |
| 753 | if (!ov.present()) |
| 754 | return 0; |
| 755 | else |
| 756 | return *((uint64_t*)(ov.get().begin())); |
| 757 | }); |
| 758 | return ret; |
| 759 | } |
| 760 | |
| 761 | Future<Standalone<StringRef>> IReadWriteContext::getValueEncodedId() { |
| 762 | // FIXME: this is inefficient in about 12 different ways |
no test coverage detected