Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-ds-flatfs
Commits
9e32f653
Commit
9e32f653
authored
Feb 14, 2020
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: log a warning when the user passes a nonsensical query
parent
246a8307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
flatfs.go
flatfs.go
+5
-0
No files found.
flatfs.go
View file @
9e32f653
...
...
@@ -683,6 +683,11 @@ func (fs *Datastore) Query(q query.Query) (query.Results, error) {
// This datastore can't include keys with multiple components.
// Therefore, it's always correct to return an empty result when
// the user requests a filter by prefix.
log
.
Warnw
(
"flatfs was queried with a key prefix but flatfs only supports keys at the root"
,
"prefix"
,
q
.
Prefix
,
"query"
,
q
,
)
return
query
.
ResultsWithEntries
(
q
,
nil
),
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment