mirror of https://github.com/tidwall/tile38.git
Add auth to allowed commands while data is loading
(cherry picked from commit 051605909e61bcc9251efaa350cb825436e06912)
This commit is contained in:
parent
d7a766c6d0
commit
dbaa9c13a0
|
@ -946,7 +946,7 @@ func (s *Server) handleInputCommand(client *Client, msg *Message) error {
|
||||||
|
|
||||||
if !s.loadedAndReady.Load() {
|
if !s.loadedAndReady.Load() {
|
||||||
switch msg.Command() {
|
switch msg.Command() {
|
||||||
case "output", "ping", "echo":
|
case "output", "ping", "echo", "auth":
|
||||||
default:
|
default:
|
||||||
return writeErr("LOADING Tile38 is loading the dataset in memory")
|
return writeErr("LOADING Tile38 is loading the dataset in memory")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue