| 916 | } |
| 917 | |
| 918 | void Applier::setSequence(thread_db* tdbb, const MetaName& genName, SINT64 value) |
| 919 | { |
| 920 | const auto attachment = tdbb->getAttachment(); |
| 921 | |
| 922 | auto gen_id = attachment->att_generators.lookup(genName); |
| 923 | |
| 924 | if (gen_id < 0) |
| 925 | { |
| 926 | gen_id = MET_lookup_generator(tdbb, genName); |
| 927 | |
| 928 | if (gen_id < 0) |
| 929 | raiseError("Generator %s is not found", genName.c_str()); |
| 930 | |
| 931 | attachment->att_generators.store(gen_id, genName); |
| 932 | } |
| 933 | |
| 934 | AutoSetRestoreFlag<ULONG> noCascade(&tdbb->tdbb_flags, TDBB_repl_in_progress, !m_enableCascade); |
| 935 | |
| 936 | if (DPM_gen_id(tdbb, gen_id, false, 0) < value) |
| 937 | DPM_gen_id(tdbb, gen_id, true, value); |
| 938 | } |
| 939 | |
| 940 | void Applier::storeBlob(thread_db* tdbb, TraNumber traNum, bid* blobId, |
| 941 | ULONG length, const UCHAR* data) |
no test coverage detected