track bug

This commit is contained in:
xuejiaming 2023-07-07 21:47:15 +08:00
parent 42914f8734
commit 341ecc550f
1 changed files with 8 additions and 4 deletions

View File

@ -62,7 +62,8 @@ namespace ShardingCore.Sharding.ShardingExecutors
{ {
if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext) if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext)
{ {
return _shardingQueryExecutor.Execute<TResult>(mergeQueryCompilerContext); var mergeResult = _shardingQueryExecutor.Execute<TResult>(mergeQueryCompilerContext);
return ResultTrackExecute(mergeResult, queryCompilerContext, TrackEnumerable, Track);
} }
throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint()); throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint());
} }
@ -119,7 +120,8 @@ namespace ShardingCore.Sharding.ShardingExecutors
{ {
if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext) if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext)
{ {
return _shardingQueryExecutor.ExecuteAsync<TResult>(mergeQueryCompilerContext); var mergeResult = _shardingQueryExecutor.ExecuteAsync<TResult>(mergeQueryCompilerContext);
return ResultTrackExecute(mergeResult, queryCompilerContext, TrackAsyncEnumerable, TrackAsync);
} }
throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint()); throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint());
} }
@ -141,7 +143,8 @@ namespace ShardingCore.Sharding.ShardingExecutors
{ {
if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext) if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext)
{ {
return _shardingQueryExecutor.ExecuteAsync<IAsyncEnumerable<TResult>>(mergeQueryCompilerContext); var mergeResult= _shardingQueryExecutor.ExecuteAsync<IAsyncEnumerable<TResult>>(mergeQueryCompilerContext);
return ResultTrackExecute(mergeResult, queryCompilerContext, TrackEnumerable, Track);
} }
throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint()); throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint());
} }
@ -159,7 +162,8 @@ namespace ShardingCore.Sharding.ShardingExecutors
{ {
if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext) if (queryCompilerContext is IMergeQueryCompilerContext mergeQueryCompilerContext)
{ {
return _shardingQueryExecutor.ExecuteAsync<Task<TResult>>(mergeQueryCompilerContext); var mergeResult= _shardingQueryExecutor.ExecuteAsync<Task<TResult>>(mergeQueryCompilerContext);
return ResultTrackExecute(mergeResult, queryCompilerContext, TrackEnumerable, TrackAsync);
} }
throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint()); throw new ShardingCoreNotFoundException(queryCompilerContext.GetQueryExpression().ShardingPrint());
} }