mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-07-29 19:43:19 +00:00
Update weed/query/engine/hybrid_message_scanner.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
parent
d572443c79
commit
920becfa5f
@@ -520,11 +520,12 @@ func (hms *HybridMessageScanner) scanPartitionHybridWithStats(ctx context.Contex
|
||||
}
|
||||
|
||||
// STEP 4: Fallback to sample data if no results found
|
||||
if len(results) == 0 {
|
||||
sampleResults := hms.generateSampleHybridData(options)
|
||||
results = append(results, sampleResults...)
|
||||
// Note: OFFSET and LIMIT will be applied at the end of the main scan function
|
||||
}
|
||||
// STEP 4: Fallback to sample data if no results found
|
||||
// if len(results) == 0 {
|
||||
// sampleResults := hms.generateSampleHybridData(options)
|
||||
// results = append(results, sampleResults...)
|
||||
// // Note: OFFSET and LIMIT will be applied at the end of the main scan function
|
||||
// }
|
||||
|
||||
return results, stats, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user