| 352 | std::string ns; |
| 353 | |
| 354 | static auto Create(engine::Context& ctx, redis::GlobalIndexer& indexer, std::string_view key, const std::string& ns) { |
| 355 | auto s = indexer.Record(ctx, key, ns); |
| 356 | EXPECT_EQ(s.Msg(), Status::ok_msg); |
| 357 | return *s; |
| 358 | } |
| 359 | |
| 360 | ScopedUpdate(engine::Context* ctx, redis::GlobalIndexer& indexer, std::string_view key, const std::string& ns) |
| 361 | : db_ctx(ctx), rr(Create(*ctx, indexer, key, ns)), key(key), ns(ns) {} |