Copilot commented on code in PR #947:
URL:
https://github.com/apache/skywalking-banyandb/pull/947#discussion_r2700904084
##########
banyand/stream/metadata.go:
##########
@@ -231,17 +236,228 @@ func (sr *schemaRepo) loadStream(metadata
*commonv1.Metadata) (*stream, bool) {
}
func (sr *schemaRepo) loadTSDB(groupName string) (storage.TSDB[*tsTable,
option], error) {
+ if sr == nil {
+ return nil, fmt.Errorf("schemaRepo is nil")
+ }
g, ok := sr.LoadGroup(groupName)
if !ok {
return nil, fmt.Errorf("group %s not found", groupName)
}
db := g.SupplyTSDB()
if db == nil {
- return nil, fmt.Errorf("tsdb for group %s not found", groupName)
+ return nil, fmt.Errorf("group %s not found", groupName)
}
return db.(storage.TSDB[*tsTable, option]), nil
}
+// CollectDataInfo collects data info for a specific.
Review Comment:
The comment is incomplete. It should say "collects data info for a specific
group" instead of "collects data info for a specific."
```suggestion
// CollectDataInfo collects data info for a specific group.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]