File tree 1 file changed +6
-4
lines changed
ydb/library/yql/providers/yt/gateway/qplayer
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -315,10 +315,14 @@ class TGateway : public IYtGateway {
315
315
}
316
316
317
317
NThreading::TFuture<TTableRangeResult> GetTableRange (TTableRangeOptions&& options) final {
318
+ TString key;
319
+ if (QContext_) {
320
+ key = MakeGetTableRangeKey (options);
321
+ }
322
+
318
323
if (QContext_.CanRead ()) {
319
324
TTableRangeResult res;
320
325
res.SetSuccess ();
321
- auto key = MakeGetTableRangeKey (options);
322
326
auto item = QContext_.GetReader ()->Get ({YtGateway_GetTableRange, key}).GetValueSync ();
323
327
if (!item) {
324
328
throw yexception () << " Missing replay data" ;
@@ -354,9 +358,8 @@ class TGateway : public IYtGateway {
354
358
return NThreading::MakeFuture<TTableRangeResult>(res);
355
359
}
356
360
357
- auto optionsDup = options;
358
361
return Inner_->GetTableRange (std::move (options))
359
- .Subscribe ([optionsDup , qContext = QContext_](const NThreading::TFuture<TTableRangeResult>& future) {
362
+ .Subscribe ([key , qContext = QContext_](const NThreading::TFuture<TTableRangeResult>& future) {
360
363
if (!qContext.CanWrite () || future.HasException ()) {
361
364
return ;
362
365
}
@@ -366,7 +369,6 @@ class TGateway : public IYtGateway {
366
369
return ;
367
370
}
368
371
369
- const auto & key = MakeGetTableRangeKey (optionsDup);
370
372
auto listNode = NYT::TNode::CreateList ();
371
373
for (const auto & t : res.Tables ) {
372
374
listNode.Add ();
You can’t perform that action at this time.
0 commit comments