1
0
Fork 0

Merge branch 'master' into queue-seq-number

master
Philip O'Toole 2 years ago
commit 1d60c28739

@ -5,7 +5,7 @@
### Implementation changes and bug fixes
- [PR #1027](https://github.com/rqlite/rqlite/pull/1027): go mod (dependencies) updates, including upgrading SQLite to 3.38.5.
- [PR #1030](https://github.com/rqlite/rqlite/pull/1030): Handle more connection errors. Fixes [issue #1029](https://github.com/rqlite/rqlite/issues/1029).
- [PR #1030](https://github.com/rqlite/rqlite/pull/1030), [PR #1032](https://github.com/rqlite/rqlite/pull/1032): Handle more connection errors. Fixes [issue #1029](https://github.com/rqlite/rqlite/issues/1029).
## 7.4.0 (May 10th 2022)
With this release rqlite supports restoring a node from an actual SQLite file, which is very much faster than restoring using the SQL dump representation of the same SQLite database.

@ -106,6 +106,7 @@ func (c *Client) GetNodeAPIAddr(nodeAddr string, timeout time.Duration) (string,
}
_, err = io.ReadFull(conn, b)
if err != nil {
handleConnError(conn)
return "", err
}
sz := binary.LittleEndian.Uint16(b[0:])
@ -118,6 +119,7 @@ func (c *Client) GetNodeAPIAddr(nodeAddr string, timeout time.Duration) (string,
}
_, err = io.ReadFull(conn, p)
if err != nil {
handleConnError(conn)
return "", err
}
@ -260,6 +262,7 @@ func (c *Client) Query(qr *command.QueryRequest, nodeAddr string, timeout time.D
// Read length of response.
_, err = io.ReadFull(conn, b)
if err != nil {
handleConnError(conn)
return nil, err
}
sz := binary.LittleEndian.Uint32(b[0:])
@ -268,6 +271,7 @@ func (c *Client) Query(qr *command.QueryRequest, nodeAddr string, timeout time.D
p = make([]byte, sz)
_, err = io.ReadFull(conn, p)
if err != nil {
handleConnError(conn)
return nil, err
}

Loading…
Cancel
Save