1
0
Fork 0

117 Commits (a557d8b210f657d797e0e23d45628a3065cba24f)

Author SHA1 Message Date
Philip O'Toole 1ffc3d566e Add varadic functions to auth store 5 years ago
Philip O'Toole a23af88235 Write backup and dump files to a writer
This avoids making an extra copy in RAM. Port of original PR at
https://github.com/rqlite/rqlite/pull/461/.
5 years ago
Philip O'Toole c69ef51790 Remove debug line 5 years ago
Philip O'Toole f57ace7da2 Broadcast Store meta via standard consensus
With this change the cluster metadata (arbitrary key-value data associated with each node) is now broadcast across the cluster using the standard consensus mechanism. Specifically the use case for this metadata is to allow all nodes know the HTTP API address of all other nodes, for the purpose of redirecting requests to the leader.

This change removed the need for multiplexing two logical connections
over the single Raft TCP connection, which greatly simplifies the
networking code generally.

Original PR https://github.com/rqlite/rqlite/pull/434
5 years ago
Philip O'Toole a6f8f060fb Update CHANGELOG 5 years ago
Philip O'Toole e376812907 Add method to Store that returns leader ID
With the advent of Raft IDs, this distinction matters.
5 years ago
Philip O'Toole 8a0e1ce8f0 Move to Hashicorp Raft v1 5 years ago
Philip O'Toole 0e69be3949 Store layer supports generating SQL format backups
Port PR453.
5 years ago
Philip O'Toole 0471877f26 Abort transaction if load operation fails 5 years ago
Philip O'Toole 33f6f6bf8e Move EnsureHTTPS into http module 5 years ago
Philip O'Toole de379a883c When joining try HTTPS if HTTP fails 5 years ago
Zac Medico f01e6b1b0a
Server -http-ca-cert and -node-ca-cert options
The -http-ca-cert and -node-ca-cert options allow the user to specify
trusted X.509 root CA certificates as an alternative to the
-http-no-verify and -node-no-verify options. This behavior is analogous
to the rqlite client -ca-cert option.
5 years ago
Philip O'Toole efec4d4e42 Return redirect if remove on follower
Fixes issue #391.
7 years ago
Philip O Toole 00d24ce06d Reduce cyclo complexity 7 years ago
Philip O'Toole 272792fbef "status" permission required for Go runtime info 7 years ago
Philip O'Toole 2a1b6c65c3 New QueryRequest and ExecuteRequest types
The Query() and Execute() functions on the Store now take a complex type
that encapsulates the statements, and associated parameters. This will
make it easier to add more control parameters when making requests.
7 years ago
Philip O Toole 9d480c17c3 Make read consistency param case-insensitive 7 years ago
Philip O Toole 346e11cd88 Include query params with 301 redirect URL 7 years ago
Philip O'Toole 5a6f344a7d Don't always set Content-Type as JSON (#334)
Set Content-type for backup endpoint to "application/octet-stream".
7 years ago
Philip O'Toole d753a8f7be HTTP service now supports registered statuses
Mux is first service to register status for serving.
7 years ago
Philip O Toole 982fa54030 Not all queries begin with SELECT so pull check
Common Table Expressions can begin with WITH. This check was always dubious.
8 years ago
Philip O Toole e6f428fcd8 Convert magic string to const 8 years ago
Philip O Toole 2c8922b50b Standardize load endpoint processing 8 years ago
Philip O Toole 9e87a3ba30 Add new perm for loading SQLite dump file
This was missed in previous releases.
8 years ago
Philip O Toole 5ed6ef0ae8 Covert dumps to queries in HTTP service
There is no need for special logic at the Store level.
8 years ago
Philip O'Toole 210367b51b Fix call to Load() 8 years ago
Philip O'Toole 36368d6786 Start removing batch load 8 years ago
Philip O'Toole 68793cfcbb Use a transaction for loaded batch
Bump the batch size to 1000 too.
8 years ago
Philip O Toole 6270744584 Correct batch size variable name 8 years ago
Philip O Toole 12482c682d const out loader batch size 8 years ago
Philip O Toole 88eb56e431 Service now uses load batch of 100 8 years ago
Philip O Toole 3286bf064d Start adding load-from-dump 8 years ago
Philip O'Toole 5b4b1e3567 Set Content-type "application/json" on responses 8 years ago
Philip O'Toole 729221bf57 join endpoint returns HTTP 301 if necessary 8 years ago
Philip O Toole 0198e31cbf Refactor adding build version to HTTP response 8 years ago
Philip O Toole 1152886216 Reduce Go cyclo complexity 8 years ago
Philip O'Toole 54cbd025e1 'go lint' fixes 8 years ago
Philip O'Toole 354c9588b9 Remove useless comment 8 years ago
Philip O'Toole bc60aa755d At least log any failure from HTTP Serve() 8 years ago
Philip O'Toole 9a0b9bcafe Update service.go 8 years ago
Philip O Toole 1b6bdffd33 Add rqlite version to each HTTP response 8 years ago
Philip O'Toole 6f4814a4c3 Support pprof information over HTTP 8 years ago
Philip O'Toole 918a3200dd Correct method for removal of node 8 years ago
Philip O Toole 0aff83dea8 Ensure the correct HTTP methods on endpoints 8 years ago
Philip O'Toole de6cc9ce12 Log full error on join failure 8 years ago
Philip O'Toole 37195abcf4 Expose /remove endpoint on HTTPD service 8 years ago
Philip O'Toole 3f467c6590 Merge pull request #129 from rqlite/force_select
Check that queries begin with SELECT
8 years ago
Philip O'Toole 9a36f4867a Check if queries start with SELECT 8 years ago
Philip O'Toole 8d7644f55a More 'go lint' fixes 8 years ago
Philip O Toole bf2047b45b 'go lint' fixes 8 years ago