File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,11 @@ func doInitQueryNodeOnce(ctx context.Context) error {
122122 cGrowingJSONKeyStatsEnabled := C .bool (paramtable .Get ().CommonCfg .EnabledGrowingSegmentJSONKeyStats .GetAsBool ())
123123 C .SetDefaultGrowingJSONKeyStatsEnable (cGrowingJSONKeyStatsEnabled )
124124
125- cGpuMemoryPoolInitSize := C .uint32_t (paramtable .Get ().GpuConfig .InitSize .GetAsUint32 ())
126- cGpuMemoryPoolMaxSize := C .uint32_t (paramtable .Get ().GpuConfig .MaxSize .GetAsUint32 ())
127- C .SegcoreSetKnowhereGpuMemoryPoolSize (cGpuMemoryPoolInitSize , cGpuMemoryPoolMaxSize )
125+ if paramtable .GetRole () != typeutil .StreamingNodeRole {
126+ cGpuMemoryPoolInitSize := C .uint32_t (paramtable .Get ().GpuConfig .InitSize .GetAsUint32 ())
127+ cGpuMemoryPoolMaxSize := C .uint32_t (paramtable .Get ().GpuConfig .MaxSize .GetAsUint32 ())
128+ C .SegcoreSetKnowhereGpuMemoryPoolSize (cGpuMemoryPoolInitSize , cGpuMemoryPoolMaxSize )
129+ }
128130
129131 cEnableConfigParamTypeCheck := C .bool (paramtable .Get ().CommonCfg .EnableConfigParamTypeCheck .GetAsBool ())
130132 C .SetDefaultConfigParamTypeCheck (cEnableConfigParamTypeCheck )
You can’t perform that action at this time.
0 commit comments