pax_global_header 0000666 0000000 0000000 00000000064 14561422115 0014513 g ustar 00root root 0000000 0000000 52 comment=14a9e2abcea5f2ea64097edde2a2b7b4c1aac88a
raft-0.22.0/ 0000775 0000000 0000000 00000000000 14561422115 0012530 5 ustar 00root root 0000000 0000000 raft-0.22.0/.clang-format 0000664 0000000 0000000 00000000257 14561422115 0015107 0 ustar 00root root 0000000 0000000 BasedOnStyle: Chromium
BreakBeforeBraces: Custom
BraceWrapping:
AfterFunction: true
AfterStruct: true
IndentWidth: 4
PointerAlignment: Right
ForEachMacros: ['QUEUE_FOREACH'] raft-0.22.0/.dir-locals.el 0000664 0000000 0000000 00000000330 14561422115 0015155 0 ustar 00root root 0000000 0000000 ((nil . ((fill-column . 80)))
(c-mode . ((flycheck-clang-definitions . ("HAVE_LINUX_AIO_ABI_H" "HAVE_LINUX_IO_URING_H" "_GNU_SOURCE"))
(flycheck-clang-args . ("-Wpedantic" "-Wall" "-Wextra" "-Wconversion")))))
raft-0.22.0/.github/ 0000775 0000000 0000000 00000000000 14561422115 0014070 5 ustar 00root root 0000000 0000000 raft-0.22.0/.github/workflows/ 0000775 0000000 0000000 00000000000 14561422115 0016125 5 ustar 00root root 0000000 0000000 raft-0.22.0/.github/workflows/benchmark.yml 0000664 0000000 0000000 00000007124 14561422115 0020606 0 ustar 00root root 0000000 0000000 name: Benchmark
on:
workflow_dispatch:
inputs:
keep:
description: "Keep BMC server"
type: boolean
default: false
schedule:
- cron: '12 4 * * *'
jobs:
github:
name: On GitHub
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
repository: cowsql/cowsql-ci
- name: Run checks
env:
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
run: |
./bin/check --testbed github
bmc-deploy:
name: On BMC - deploy
runs-on: ubuntu-22.04
outputs:
id: ${{ steps.create.outputs.id }}
address: ${{ steps.wait.outputs.address}}
steps:
- name: Create
uses: phoenixnap-github-actions/create-server-bmc@v1
id: create
with:
clientid: ${{secrets.BMC_CLIENT_ID}}
clientsecret: ${{secrets.BMC_CLIENT_SECRET}}
hostname: "bmc"
image: "ubuntu/jammy"
location: "ASH"
type: "s1.c1.medium"
- name: Wait
id: wait
env:
ID: ${{ steps.create.outputs.id }}
AUTH_URL: https://auth.phoenixnap.com/auth/realms/BMC/protocol/openid-connect/token
API_URL: https://api.phoenixnap.com/bmc/v1/servers
CLIENT_ID: ${{secrets.BMC_CLIENT_ID}}
CLIENT_SECRET: ${{secrets.BMC_CLIENT_SECRET}}
run: |
for i in $(seq 30); do
DATA="client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&grant_type=client_credentials"
ACCESS_TOKEN=$(curl -s -X POST -d "${DATA}" ${AUTH_URL} | jq -r .access_token)
HEADER="Authorization: Bearer ${ACCESS_TOKEN}"
STATUS=$(curl -s -H "${HEADER}" ${API_URL}/${ID}/ | jq -r .status)
echo status: $STATUS
if [ "$STATUS" = "powered-on" ]; then
break
fi
sleep 60
done
if [ "$STATUS" != "powered-on" ]; then
echo "Server still not ready: $STATUS"
exit 1
fi
ADDR=$(curl -s -H "${HEADER}" ${API_URL}/${ID}/ | jq -r .publicIpAddresses[0])
echo "address=$ADDR" >> $GITHUB_OUTPUT
- name: Update kernel
env:
SSH: "ssh -o StrictHostKeyChecking=no -i ~/.ssh/bmc ubuntu@${{ steps.wait.outputs.address}}"
run: |
mkdir -p ~/.ssh/
echo "${{secrets.BMC_SSH_KEY}}" > ~/.ssh/bmc
chmod 600 ~/.ssh/bmc
$SSH sudo apt-get install -y git
$SSH git clone --depth 1 https://github.com/cowsql/cowsql-ci.git ci
$SSH /home/ubuntu/ci/bin/install-kernel
$SSH sudo reboot || true
sleep 30
for i in $(seq 60); do
$SSH true 2>/dev/null && break
sleep 5
done
$SSH true
bmc-run:
name: On BMC - run
runs-on: ubuntu-22.04
needs: bmc-deploy
env:
SSH: "ssh -o StrictHostKeyChecking=no -i ~/.ssh/bmc ubuntu@${{ needs.bmc-deploy.outputs.address}}"
steps:
- name: Setup SSH key
run: |
mkdir -p ~/.ssh/
echo "${{secrets.BMC_SSH_KEY}}" > ~/.ssh/bmc
chmod 600 ~/.ssh/bmc
- name: Run checks
env:
BENCHER_API_TOKEN: ${{ secrets.BENCHER_API_TOKEN }}
run: |
$SSH "BENCHER_API_TOKEN=$BENCHER_API_TOKEN /home/ubuntu/ci/bin/check --testbed bmc"
bmc-delete:
name: On BMC - delete
runs-on: ubuntu-22.04
if: always() && (inputs.keep == '' || inputs.keep == 'false')
needs: [bmc-deploy, bmc-run]
steps:
- name: Delete
uses: phoenixnap-github-actions/delete-server-bmc@v1
with:
clientid: ${{secrets.BMC_CLIENT_ID}}
clientsecret: ${{secrets.BMC_CLIENT_SECRET}}
serverid: ${{ needs.bmc-deploy.outputs.id}}
raft-0.22.0/.github/workflows/coverity.yml 0000664 0000000 0000000 00000001234 14561422115 0020514 0 ustar 00root root 0000000 0000000 name: Coverity
on:
push:
branches:
- main
jobs:
coverity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq linux-libc-dev libuv1-dev
- name: Configure
run: |
autoreconf -i
mkdir build
cd build
../configure
- uses: vapier/coverity-scan-action@v1
with:
email: free@ekanayaka.io
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
version: main
description: ${GITHUB_SHA}
command: make -C build -j$(nproc)
raft-0.22.0/.github/workflows/downstream.yml 0000664 0000000 0000000 00000020002 14561422115 0021025 0 ustar 00root root 0000000 0000000 name: Downstream
on:
push:
tags:
- '**'
pull_request:
types: [ labeled, opened, synchronize, reopened ]
jobs:
cowsql:
if: contains(github.event.pull_request.labels.*.name, 'downstream')
runs-on: ubuntu-22.04
steps:
- name: Install apt deps
run: |
sudo apt-get update -qq
sudo apt-get install -qq automake libtool gcc make libuv1-dev libsqlite3-dev
- name: Check out raft
uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/head
path: raft
- name: Install raft
run: |
cd raft
autoreconf -i
./configure --prefix=/usr --enable-debug --enable-uv --enable-sanitize --enable-backtrace
sudo make -j$(nproc) install
- name: Check out cowsql
uses: actions/checkout@v3
with:
repository: cowsql/cowsql
path: cowsql
- name: Test and install cowsql
run: |
cd cowsql
autoreconf -i
./configure --prefix=/usr --enable-debug --enable-sanitize --enable-backtrace
sudo make -j$(nproc) check || (cat ./test-suite.log && false)
sudo make install
- name: Install Go
uses: actions/setup-go@v4
- name: Check out go-cowsql
uses: actions/checkout@v3
with:
repository: cowsql/go-cowsql
path: go-cowsql
- name: Test go-cowsql
env:
GO_DQLITE_MULTITHREAD: '1'
run: |
cd go-cowsql
go get -tags libsqlite3 -t ./...
go test -asan -v ./...
VERBOSE=1 ASAN=-asan ./test/cowsql-demo.sh
VERBOSE=1 ASAN=-asan ./test/roles.sh
VERBOSE=1 ASAN=-asan ./test/recover.sh
dqlite:
if: contains(github.event.pull_request.labels.*.name, 'downstream')
runs-on: ubuntu-22.04
steps:
- name: Install apt deps
run: |
sudo apt-get update -qq
sudo apt-get install -qq automake libtool gcc make libuv1-dev libsqlite3-dev
- name: Check out raft
uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/head
path: raft
- name: Install raft
run: |
cd raft
autoreconf -i
./configure --prefix=/usr --enable-debug --enable-uv --enable-sanitize --enable-backtrace
sudo make -j$(nproc) install
- name: Check out dqlite
uses: actions/checkout@v3
with:
repository: canonical/dqlite
ref: v1.16.0
path: dqlite
- name: Test and install dqlite
run: |
cd dqlite
autoreconf -i
./configure --prefix=/usr --enable-debug --enable-sanitize --enable-backtrace
sudo make -j$(nproc) check || (cat ./test-suite.log && false)
sudo make install
- name: Install Go
uses: actions/setup-go@v4
- name: Check out go-dqlite
uses: actions/checkout@v3
with:
repository: canonical/go-dqlite
path: go-dqlite
- name: Test go-dqlite
env:
GO_DQLITE_MULTITHREAD: '1'
run: |
cd go-dqlite
go get -tags libsqlite3 -t ./...
go test -asan -v ./...
VERBOSE=1 ASAN=-asan ./test/dqlite-demo.sh
VERBOSE=1 ASAN=-asan ./test/roles.sh
VERBOSE=1 ASAN=-asan ./test/recover.sh
incus:
if: contains(github.event.pull_request.labels.*.name, 'downstream')
runs-on: ubuntu-22.04
env:
CGO_LDFLAGS_ALLOW: "(-Wl,-wrap,pthread_create)|(-Wl,-z,now)"
INCUS_SHIFTFS_DISABLE: "true"
INCUS_VERBOSE: "1"
INCUS_OFFLINE: "1"
INCUS_TMPFS: "1"
INCUS_REQUIRED_TESTS: "test_storage_buckets"
strategy:
fail-fast: false
matrix:
suite: ["cluster", "standalone"]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: lxc/incus
- name: Install Go
uses: actions/setup-go@v4
- name: Install dependencies
run: |
set -x
sudo add-apt-repository ppa:ubuntu-lxc/lxc-git-master -y --no-update
sudo apt-get update
sudo snap remove lxd --purge
sudo snap remove core20 --purge || true
sudo apt-get autopurge moby-containerd docker uidmap -y
sudo ip link delete docker0
sudo nft flush ruleset
sudo systemctl mask lxc.service
sudo systemctl mask lxc-net.service
sudo apt-get install --no-install-recommends -y \
curl \
git \
libacl1-dev \
libcap-dev \
libdbus-1-dev \
liblxc-dev \
libseccomp-dev \
libselinux-dev \
libsqlite3-dev \
libtool \
libudev-dev \
libuv1-dev \
automake \
make \
pkg-config\
acl \
attr \
bind9-dnsutils \
btrfs-progs \
busybox-static \
dnsmasq-base \
easy-rsa \
gettext \
jq \
lxc-utils \
lvm2 \
nftables \
quota \
rsync \
s3cmd \
socat \
sqlite3 \
squashfs-tools \
tar \
tcl \
thin-provisioning-tools \
uuid-runtime \
xfsprogs \
xz-utils \
zfsutils-linux
# reclaim some space
sudo apt-get clean
# Download minio.
curl -sSfL https://dl.min.io/server/minio/release/linux-amd64/archive/minio_20240116160738.0.0_amd64.deb --output /tmp/minio.deb
sudo apt-get install /tmp/minio.deb --yes
# Download latest release of openfga server.
mkdir -p "$(go env GOPATH)/bin"
curl -sSfL https://api.github.com/repos/openfga/openfga/releases/latest | jq -r '.assets | .[] | .browser_download_url | select(. | test("_linux_amd64.tar.gz$"))' | xargs -I {} curl -sSfL {} -o openfga.tar.gz
tar -xzf openfga.tar.gz -C "$(go env GOPATH)/bin/"
# Download latest release of openfga cli.
curl -sSfL https://api.github.com/repos/openfga/cli/releases/latest | jq -r '.assets | .[] | .browser_download_url | select(. | test("_linux_amd64.tar.gz$"))' | xargs -I {} curl -sSfL {} -o fga.tar.gz
tar -xzf fga.tar.gz -C "$(go env GOPATH)/bin/"
- name: Check out raft
uses: actions/checkout@v3
with:
ref: refs/pull/${{ github.event.number }}/head
path: raft
- name: Install raft
run: |
cd raft
autoreconf -i
./configure --prefix=/usr --enable-debug --enable-backtrace
sudo make -j$(nproc) install
- name: Check out cowsql
uses: actions/checkout@v3
with:
repository: cowsql/cowsql
path: cowsql
- name: Install cowsql
run: |
cd cowsql
autoreconf -i
./configure --prefix=/usr --enable-debug --enable-backtrace
sudo make -j$(nproc) install
- name: Download go dependencies
run: |
go mod download
- name: Run Incus build
run: |
make
- name: "Run system tests"
run: |
chmod +x ~
echo "root:1000000:1000000000" | sudo tee /etc/subuid /etc/subgid
cd test
sudo --preserve-env=PATH,GOPATH,GITHUB_ACTIONS,INCUS_VERBOSE,INCUS_BACKEND,INCUS_OFFLINE,INCUS_SKIP_TESTS,INCUS_REQUIRED_TESTS,INCUS_SHIFTFS_DISABLE INCUS_BACKEND=dir ./main.sh ${{ matrix.suite }}
jepsen:
if: contains(github.event.pull_request.labels.*.name, 'downstream')
uses: cowsql/jepsen.cowsql/.github/workflows/test-build-run.yml@main
with:
raft-ref: refs/pull/${{ github.event.number }}/head
workloads: >
['append', 'bank', 'set']
nemeses: >
['none', 'partition', 'kill', 'stop', 'disk', 'member',
'partition,stop', 'partition,kill', 'partition,member',
'packet,stop', 'pause']
raft-0.22.0/.github/workflows/tests.yml 0000664 0000000 0000000 00000010244 14561422115 0020013 0 ustar 00root root 0000000 0000000 name: Tests
on:
- push
- pull_request
jobs:
test:
name: Unit and integration tests
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Setup dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq lcov linux-libc-dev libuv1-dev btrfs-progs xfsprogs zfsutils-linux
- name: Configure
run: |
autoreconf -i
./configure --enable-example \
--enable-debug \
--enable-code-coverage \
--enable-sanitize \
--enable-benchmark
- name: Build
run: |
make -j$(nproc --all)
- name: Amalgamation
run: |
git clone --depth 1 https://github.com/edlund/amalgamate.git
export PATH=$PATH:$PWD/amalgamate
amalgamate.py --config=amalgamation.json --source=$(pwd)
gcc raft.c -c -D_GNU_SOURCE -DHAVE_LINUX_AIO_ABI_H -Wall -Wextra -Wpedantic -fpic
- name: Test
run: |
export LIBRAFT_TRACE=1
./test/lib/fs.sh setup
make check CFLAGS=-O0 $(./test/lib/fs.sh detect) || (cat ./test-suite.log && false)
./test/lib/fs.sh teardown
- name: Coverage
run: |
make code-coverage-capture
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
verbose: true
linting:
name: Linting
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.14
with:
source: 'src test example'
exclude: 'test/lib/munit.*'
extensions: 'c,h'
clangFormatVersion: 14
style: file
configure:
name: Configuration flags
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Check that no optional dependency is installed
run: |
# Remove liblz4-dev which is installed by default on the runner
sudo apt-get remove liblz4-dev
# Check that there are no dependencies installed
! pkg-config --exists libuv
! pkg-config --exists liblz4
- name: Run autoreconf
run: |
autoreconf -i
- name: With no deps ./configure
run: |
# Succeed, since we are not explicitly requiring libuv.
./configure
- name: With no deps ./configure --enable-uv
run: |
# Fail, since libuv is not installed.
! ./configure --enable-uv 2>errors
tail -1 errors | grep -q "libuv required but not found" || (cat errors && false)
- name: With no deps ./configure --with-lz4
run: |
# Fail, since using lz4 makes sense only if libuv is used too.
! ./configure --with-lz4 2>errors
tail -1 errors | grep -q "liblz4 can be used only if libuv is used too" || (cat errors && false)
- name: Install libuv
run: |
sudo apt-get install -qq linux-libc-dev libuv1-dev
- name: With libuv only ./configure
run: |
# Succeed, since libuv is installed and automatically used.
./configure
- name: With libuv only ./configure --disable-uv
run: |
# Succeed, since libuv support can be disabled
./configure --disable-uv
- name: With libuv only ./configure --with-lz4
run: |
# Fail, since liblz4 is not installed.
! ./configure --with-lz4 2>errors
tail -1 errors | grep -q "liblz4 required but not found" || (cat errors && false)
- name: With libuv only ./configure --disable-uv --with-lz4
run: |
# Fail, since using lz4 makes sense only if libuv is used too.
! ./configure --disable-uv --with-lz4 2>errors
tail -1 errors | grep -q "liblz4 can be used only if libuv is used too" || (cat errors && false)
- name: Install liblz4
run: |
sudo apt-get install -qq liblz4-dev
- name: With libuv and liblz4 ./configure
run: |
# Succeed, since all optional dependencies are found and used.
./configure
- name: With libuv and liblz4 ./configure --without-lz4
run: |
# Succeed, since we support building without lz4 even if both libuv and
# liblz4 are found.
./configure --without-lz4
raft-0.22.0/.gitignore 0000664 0000000 0000000 00000000715 14561422115 0014523 0 ustar 00root root 0000000 0000000 *.o
*.gcno
*.gcda
*~
Makefile.in
aclocal.m4
aminclude_static.am
autom4te.cache/
config.h.in
configure
Makefile
config.h
config.log
config.status
libtool
raft.pc
stamp-h1
*.lo
*.la
.dirstamp
.deps/
.libs/
test/unit/core
test/unit/uv
test/integration/core
test/integration/uv
test/fuzzy/core
test/*/*.log
test/*/*.trs
os-test*
test-suite.log
coverage/
coverage.info
TAGS
example/server
example/cluster
tools/raft-benchmark
tmp
conftest*
docs/build
include/raft.h
raft-0.22.0/.readthedocs.yaml 0000664 0000000 0000000 00000000356 14561422115 0015763 0 ustar 00root root 0000000 0000000 # .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2
build:
os: ubuntu-22.04
tools:
python: "3.11"
sphinx:
configuration: docs/conf.py
raft-0.22.0/.travis.yml 0000664 0000000 0000000 00000002035 14561422115 0014641 0 ustar 00root root 0000000 0000000 language: c
addons:
apt:
packages:
- lcov
- linux-libc-dev
- libuv1-dev
- btrfs-progs
- xfsprogs
- zfsutils-linux
jobs:
include:
- if: type != pull_request
compiler: gcc
dist: bionic
arch: s390x
- if: type == pull_request
compiler: gcc
dist: bionic
arch: arm64
- if: type != pull_request
compiler: clang
dist: bionic
arch: ppc64le
before_script:
- git clone --depth 1 https://github.com/edlund/amalgamate.git
- export PATH=$PATH:$PWD/amalgamate
script:
- autoreconf -i
- |
if [ $TRAVIS_CPU_ARCH = "s390x" ] || [ $TRAVIS_CPU_ARCH = "arm64" ]; then
./configure --enable-example --enable-debug
else
./configure --enable-example --enable-debug --enable-sanitize
fi
- amalgamate.py --config=amalgamation.json --source=$(pwd)
- $CC raft.c -c -D_GNU_SOURCE -DHAVE_LINUX_AIO_ABI_H -Wall -Wextra -Wpedantic -fpic
- ./test/lib/fs.sh setup
- make check $(./test/lib/fs.sh detect) || (cat ./test-suite.log && false)
- ./test/lib/fs.sh teardown
raft-0.22.0/AUTHORS 0000664 0000000 0000000 00000000360 14561422115 0013577 0 ustar 00root root 0000000 0000000 Unless mentioned otherwise in a specific file's header, all code in this
project is released under the LGPL v3 license.
The list of authors and contributors can be retrieved from the git
commit history and in some cases, the file headers.
raft-0.22.0/LICENSE 0000664 0000000 0000000 00000022011 14561422115 0013531 0 ustar 00root root 0000000 0000000 All files in this repository are licensed as follows. If you contribute
to this repository, it is assumed that you license your contribution
under the same license unless you state otherwise.
All files Copyright (C) 2019 Canonical Ltd. unless otherwise specified in the file.
All files modifications after the 9th of August 2023 Copyright (C) 2023 Free
Ekanayaka unless otherwise specified in the file.
This software is licensed under the LGPLv3, included below.
As a special exception to the GNU Lesser General Public License version 3
("LGPL3"), the copyright holders of this Library give you permission to
convey to a third party a Combined Work that links statically or dynamically
to this Library without providing any Minimal Corresponding Source or
Minimal Application Code as set out in 4d or providing the installation
information set out in section 4e, provided that you comply with the other
provisions of LGPL3 and provided that you meet, for the Application the
terms and conditions of the license(s) which apply to the Application.
Except as stated in this special exception, the provisions of LGPL3 will
continue to comply in full to this Library. If you modify this Library, you
may apply this exception to your version of this Library, but you are not
obliged to do so. If you do not wish to do so, delete this exception
statement from your version. This exception does not (and cannot) modify any
license terms which apply to the Application, with which you must still
comply.
SPDX-License-Identifier: LGPL-3.0-only WITH LGPL-3.0-linking-exception
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.
raft-0.22.0/Makefile.am 0000664 0000000 0000000 00000016153 14561422115 0014572 0 ustar 00root root 0000000 0000000 ACLOCAL_AMFLAGS = -I m4
# Not clobbering the base pointer helps bpftrace construct backtraces
AM_CFLAGS += -fno-omit-frame-pointer
include_HEADERS = include/raft.h
raftincludedir = $(includedir)/raft
raftinclude_HEADERS =
lib_LTLIBRARIES = libraft.la
libraft_la_CFLAGS = $(AM_CFLAGS) $(CODE_COVERAGE_CFLAGS) -fvisibility=hidden
libraft_la_LDFLAGS = -version-info 0:0:0
libraft_la_SOURCES = \
src/byte.c \
src/client.c \
src/compress.c \
src/configuration.c \
src/convert.c \
src/election.c \
src/entry.c \
src/err.c \
src/heap.c \
src/membership.c \
src/message.c \
src/progress.c \
src/random.c \
src/raft.c \
src/recv.c \
src/recv_append_entries.c \
src/recv_append_entries_result.c \
src/recv_request_vote.c \
src/recv_request_vote_result.c \
src/recv_install_snapshot.c \
src/recv_timeout_now.c \
src/restore.c \
src/replication.c \
src/state.c \
src/syscall.c \
src/timeout.c \
src/tracing.c \
src/trail.c
bin_PROGRAMS =
check_PROGRAMS = \
test/unit/core \
test/integration/core
TESTS = $(check_PROGRAMS)
check_LTLIBRARIES = libtest.la
libtest_la_CFLAGS = $(AM_CFLAGS) -DMUNIT_TEST_NAME_LEN=60 -Wno-unused-result -Wno-conversion
libtest_la_SOURCES = \
test/lib/addrinfo.c \
test/lib/cluster.c \
test/lib/fault.c \
test/lib/heap.c \
test/lib/munit.c \
test/lib/tracer.c \
test/lib/tcp.c
test_unit_core_SOURCES = \
src/byte.c \
src/compress.c \
src/configuration.c \
src/err.c \
src/heap.c \
src/log.c \
src/random.c \
src/trail.c \
test/unit/main_core.c \
test/unit/test_byte.c \
test/unit/test_compress.c \
test/unit/test_configuration.c \
test/unit/test_err.c \
test/unit/test_log.c \
test/unit/test_queue.c \
test/unit/test_random.c \
test/unit/test_trail.c
test_unit_core_CFLAGS = $(AM_CFLAGS) $(CODE_COVERAGE_CFLAGS) -Wno-conversion
test_unit_core_LDADD = libtest.la
test_integration_core_SOURCES = \
test/integration/main_core.c \
test/integration/test_catch_up.c \
test/integration/test_digest.c \
test/integration/test_election.c \
test/integration/test_heap.c \
test/integration/test_init.c \
test/integration/test_membership.c \
test/integration/test_replication.c \
test/integration/test_snapshot.c \
test/integration/test_start.c \
test/integration/test_strerror.c \
test/integration/test_submit.c \
test/integration/test_tick.c \
test/integration/test_transfer.c
test_integration_core_CFLAGS = $(AM_CFLAGS) -Wno-conversion
test_integration_core_LDFLAGS = -no-install
test_integration_core_LDADD = libtest.la libraft.la
if LZ4_AVAILABLE
test_unit_core_CFLAGS += -DLZ4_AVAILABLE $(LZ4_CFLAGS)
test_unit_core_LDFLAGS = $(LZ4_LIBS)
libraft_la_CFLAGS += -DLZ4_AVAILABLE $(LZ4_CFLAGS)
libraft_la_LDFLAGS += $(LZ4_LIBS)
endif # LZ4_AVAILABLE
if V0_ENABLED
libraft_la_SOURCES += \
src/log.c \
src/legacy.c \
src/snapshot.c
libraft_la_CFLAGS += -DV0_ENABLED
libtest_la_SOURCES += \
test/lib/fsm.c \
test/lib/legacy.c
test_integration_core_SOURCES += \
test/integration/test_legacy.c
endif # V0_ENABLED
if FIXTURE_ENABLED
libraft_la_SOURCES += src/fixture.c
raftinclude_HEADERS += include/raft/fixture.h
check_PROGRAMS += \
test/fuzzy/core
test_integration_core_SOURCES += \
test/integration/test_fixture.c
test_fuzzy_core_SOURCES = \
test/fuzzy/main_core.c \
test/fuzzy/test_election.c \
test/fuzzy/test_liveness.c \
test/fuzzy/test_membership.c \
test/fuzzy/test_replication.c
test_fuzzy_core_CFLAGS = $(AM_CFLAGS) -Wno-conversion
test_fuzzy_core_LDFLAGS = -no-install
test_fuzzy_core_LDADD = libtest.la libraft.la
endif # FIXTURE_ENABLED
if UV_ENABLED
libraft_la_SOURCES += \
src/uv.c \
src/uv_append.c \
src/uv_encoding.c \
src/uv_finalize.c \
src/uv_fs.c \
src/uv_ip.c \
src/uv_list.c \
src/uv_metadata.c \
src/uv_os.c \
src/uv_prepare.c \
src/uv_recv.c \
src/uv_segment.c \
src/uv_send.c \
src/uv_snapshot.c \
src/uv_tcp.c \
src/uv_tcp_listen.c \
src/uv_tcp_connect.c \
src/uv_truncate.c \
src/uv_writer.c
libraft_la_LDFLAGS += $(UV_LIBS)
raftinclude_HEADERS += include/raft/uv.h
check_PROGRAMS += \
test/unit/uv \
test/integration/uv
libtest_la_SOURCES += \
test/lib/aio.c \
test/lib/dir.c \
test/lib/tcp.c \
test/lib/loop.c
test_unit_uv_SOURCES = \
src/err.c \
src/heap.c \
src/syscall.c \
src/tracing.c \
src/uv_fs.c \
src/uv_os.c \
src/uv_writer.c \
test/unit/main_uv.c \
test/unit/test_uv_fs.c \
test/unit/test_uv_os.c \
test/unit/test_uv_writer.c
test_unit_uv_CFLAGS = $(AM_CFLAGS) -Wno-conversion
test_unit_uv_LDADD = libtest.la $(UV_LIBS)
test_integration_uv_SOURCES = \
test/integration/main_uv.c \
test/integration/test_uv_init.c \
test/integration/test_uv_append.c \
test/integration/test_uv_bootstrap.c \
test/integration/test_uv_load.c \
test/integration/test_uv_recover.c \
test/integration/test_uv_recv.c \
test/integration/test_uv_send.c \
test/integration/test_uv_set_term.c \
test/integration/test_uv_tcp_connect.c \
test/integration/test_uv_tcp_listen.c \
test/integration/test_uv_snapshot_put.c \
test/integration/test_uv_truncate.c \
test/integration/test_uv_truncate_snapshot.c
test_integration_uv_CFLAGS = $(AM_CFLAGS) -Wno-type-limits -Wno-conversion
test_integration_uv_LDFLAGS = -no-install
test_integration_uv_LDADD = libtest.la libraft.la $(UV_LIBS)
AM_CFLAGS += $(UV_CFLAGS)
if LZ4_AVAILABLE
test_integration_uv_CFLAGS += -DLZ4_AVAILABLE
test_integration_uv_LDFLAGS += $(LZ4_LIBS)
endif # LZ4_AVAILABLE
endif # UV_ENABLED
if BACKTRACE_ENABLED
libraft_la_CFLAGS += -DRAFT_ASSERT_WITH_BACKTRACE
libraft_la_LDFLAGS += -lbacktrace
endif # BACKTRACE_ENABLED
if EXAMPLE_ENABLED
bin_PROGRAMS += \
example/server \
example/cluster
example_server_SOURCES = example/server.c
example_server_LDFLAGS = -no-install
example_server_LDADD = libraft.la $(UV_LIBS)
example_cluster_SOURCES = example/cluster.c
endif # EXAMPLE_ENABLED
if BENCHMARK_ENABLED
bin_PROGRAMS += \
tools/raft-benchmark
tools_raft_benchmark_SOURCES = \
tools/benchmark/disk.c \
tools/benchmark/disk_parse.c \
tools/benchmark/disk_uring.c \
tools/benchmark/fs.c \
tools/benchmark/main.c \
tools/benchmark/report.c \
tools/benchmark/submit_parse.c \
tools/benchmark/submit.c \
tools/benchmark/profiler.c \
tools/benchmark/timer.c
tools_raft_benchmark_LDFLAGS =
tools_raft_benchmark_LDADD = libraft.la $(UV_LIBS)
endif # BENCHMARK_ENABLED
if DEBUG_ENABLED
AM_CFLAGS += -Werror -Wall
else
AM_CFLAGS += -DNDEBUG
endif
if SANITIZE_ENABLED
AM_CFLAGS += -fsanitize=address
endif
if CODE_COVERAGE_ENABLED
include $(top_srcdir)/aminclude_static.am
CODE_COVERAGE_DIRECTORY=./src
CODE_COVERAGE_OUTPUT_DIRECTORY=coverage
CODE_COVERAGE_OUTPUT_FILE=coverage.info
if LCOV_VERSION_2
CODE_COVERAGE_LCOV_SHOPTS_DEFAULT=--ignore-errors unused,unused --ignore-errors gcov,gcov --rc branch_coverage=1
endif
CODE_COVERAGE_IGNORE_PATTERN="/usr/include/*"
CODE_COVERAGE_BRANCH_COVERAGE=1
CODE_COVERAGE_LCOV_OPTIONS=$(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) --rc lcov_excl_br_line="assert\("
clean-local: code-coverage-clean
distclean-local: code-coverage-dist-clean
endif # CODE_COVERAGE_ENABLED
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = @PACKAGE_NAME@.pc
raft-0.22.0/README.md 0000664 0000000 0000000 00000004505 14561422115 0014013 0 ustar 00root root 0000000 0000000 [](https://github.com/cowsql/raft/actions/workflows/tests.yml) [](https://codecov.io/gh/cowsql/raft) [](https://raft.readthedocs.io/en/latest/?badge=latest) [](https://scan.coverity.com/projects/cowsql-raft)
Fully asynchronous C implementation of the Raft consensus protocol.
See [readthedocs](https://raft.readthedocs.io/) for the full documentation.
Compatible fork of Canonical's raft library
-------------------------------------------
This library is a fork of [Canonical's](https://github.com/canonical/raft) Raft
implementation, which was originally written by this library's author
[himself](https://github.com/canonical/raft/commits?author=freeekanayaka) while
working at Canonical.
It is a **fully compatible drop-in replacement** of Canonical's version, at
least up to v0.18.0.
License
-------
This raft C library is released under a slightly modified version of LGPLv3,
that includes a copyright exception letting users to statically link the library
code in their project and release the final work under their own terms. See the
full [license](./LICENSE) text.
Building
--------
To build ``libraft`` from source you'll need a reasonably recent version of [libuv](https://libuv.org/) (v1.18.0 or beyond).
On a Debian (or derivative) systems:
```bash
sudo apt-get install libuv1-dev libtool pkg-config build-essential
autoreconf -i
./configure --enable-example
make
```
Notable users
-------------
- [cowsql](https://github.com/cowsql/cowsql)
Benchmarks
----------
Development benchmarks are pushed to [Bencher](https://bencher.dev/console/projects/raft/perf).
Credits
-------
Of course the biggest thanks goes to Diego Ongaro :) (the original author of the
Raft dissertation).
A lot of ideas and inspiration was taken from other Raft implementations such
as:
- CoreOS' Go implementation for [etcd](https://github.com/etcd-io/etcd/tree/master/raft)
- Hashicorp's Go [raft](https://github.com/hashicorp/raft)
- Willem's [C implementation](https://github.com/willemt/raft)
- LogCabin's [C++ implementation](https://github.com/logcabin/logcabin)
raft-0.22.0/ac/ 0000775 0000000 0000000 00000000000 14561422115 0013113 5 ustar 00root root 0000000 0000000 raft-0.22.0/ac/.gitignore 0000664 0000000 0000000 00000000016 14561422115 0015100 0 ustar 00root root 0000000 0000000 *
!.gitignore
raft-0.22.0/amalgamation.json 0000664 0000000 0000000 00000002031 14561422115 0016051 0 ustar 00root root 0000000 0000000 {
"target": "raft.c",
"sources": [
"src/byte.c",
"src/client.c",
"src/compress.c",
"src/configuration.c",
"src/convert.c",
"src/election.c",
"src/entry.c",
"src/err.c",
"src/fixture.c",
"src/heap.c",
"src/legacy.c",
"src/log.c",
"src/membership.c",
"src/progress.c",
"src/raft.c",
"src/recv.c",
"src/recv_append_entries.c",
"src/recv_append_entries_result.c",
"src/recv_install_snapshot.c",
"src/recv_request_vote.c",
"src/recv_request_vote_result.c",
"src/replication.c",
"src/snapshot.c",
"src/restore.c",
"src/state.c",
"src/syscall.c",
"src/message.c",
"src/timeout.c",
"src/tracing.c",
"src/uv.c",
"src/uv_append.c",
"src/uv_encoding.c",
"src/uv_finalize.c",
"src/uv_fs.c",
"src/uv_ip.c",
"src/uv_list.c",
"src/uv_metadata.c",
"src/uv_os.c",
"src/uv_prepare.c",
"src/uv_recv.c",
"src/uv_segment.c",
"src/uv_send.c",
"src/uv_snapshot.c",
"src/uv_tcp.c",
"src/uv_tcp_connect.c",
"src/uv_tcp_listen.c",
"src/uv_truncate.c",
"src/uv_writer.c"
],
"include_paths": [
"include"
]
}
raft-0.22.0/configure.ac 0000664 0000000 0000000 00000014417 14561422115 0015025 0 ustar 00root root 0000000 0000000 AC_PREREQ(2.60)
AC_INIT([raft], [0.22.0])
AC_LANG([C])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([ac])
AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-portability foreign])
AM_SILENT_RULES([yes])
AC_USE_SYSTEM_EXTENSIONS # Defines _GNU_SOURCE and similar
LT_INIT
# The libuv raft_io implementation is built by default if libuv is found, unless
# explicitly disabled.
AC_ARG_ENABLE(uv, AS_HELP_STRING([--disable-uv], [do not build the libuv-based raft_io implementation]))
AS_IF([test "x$enable_uv" != "xno"],
[PKG_CHECK_MODULES(UV, [libuv >= 1.18.0], [have_uv=yes], [have_uv=no])],
[have_uv=no])
AS_IF([test "x$enable_uv" = "xyes" -a "x$have_uv" = "xno"], [AC_MSG_ERROR([libuv required but not found])], [])
AM_CONDITIONAL(UV_ENABLED, test "x$have_uv" = "xyes")
# Automatically link to liblz4 if it's present.
#
# We try to detect if lz4 is installed only if the libuv raft_io implementation
# is enabled, since that's the only place where we use lz4.
AC_ARG_WITH([lz4], AS_HELP_STRING([--without-lz4], [never link to liblz4]))
AS_IF([test "x$have_uv" = "xyes"],
# libuv is used
[AS_IF([test "x$with_lz4" != "xno"],
[PKG_CHECK_MODULES(LZ4, [liblz4 >= 1.7.1], [have_lz4=yes], [have_lz4=no])],
[have_lz4=no])
AS_IF([test "x$with_lz4" = "xyes" -a "x$have_lz4" = "xno"],
[AC_MSG_ERROR([liblz4 required but not found])],
[])],
# libuv is not used
[AS_IF([test "x$with_lz4" = "xyes"],
[AC_MSG_ERROR([liblz4 can be used only if libuv is used too])],
[])
have_lz4=no])
AM_CONDITIONAL(LZ4_AVAILABLE, test "x$have_lz4" = "xyes")
AC_ARG_ENABLE(backtrace, AS_HELP_STRING([--enable-backtrace[=ARG]], [print backtrace on assertion failure [default=no]]))
AM_CONDITIONAL(BACKTRACE_ENABLED, test "x$enable_backtrace" = "xyes")
# The fake I/O implementation and associated fixture is built by default, unless
# explicitly disabled.
AC_ARG_ENABLE(fixture, AS_HELP_STRING([--disable-fixture], [do not build the raft_fixture test helper]))
AM_CONDITIONAL(FIXTURE_ENABLED, test "x$enable_fixture" != "xno")
# The example program is optional.
AC_ARG_ENABLE(example, AS_HELP_STRING([--enable-example[=ARG]], [build the example program [default=no]]))
AS_IF([test "x$enable_example" = "xyes" -a "x$have_uv" = "xno"], [AC_MSG_ERROR([example program requires libuv])], [])
AM_CONDITIONAL(EXAMPLE_ENABLED, test "x$enable_example" = "xyes")
# The benchmark programs are optional.
AC_ARG_ENABLE(benchmark, AS_HELP_STRING([--enable-benchmark[=ARG]], [build the benchmark programs [default=no]]))
AM_CONDITIONAL(BENCHMARK_ENABLED, test "x$enable_benchmark" = "xyes")
# Whether to enable debugging code.
AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug[=ARG]], [enable debugging [default=no]]))
AM_CONDITIONAL(DEBUG_ENABLED, test "x$enable_debug" = "xyes")
# Whether to enable compile-time hardening options.
AC_ARG_ENABLE(hardening, AS_HELP_STRING([--disable-hardening], [disable compile-time hardening options]))
# Whether to enable memory sanitizer.
AC_ARG_ENABLE(sanitize, AS_HELP_STRING([--enable-sanitize[=ARG]], [enable code sanitizers [default=no]]))
AM_CONDITIONAL(SANITIZE_ENABLED, test x"$enable_sanitize" = x"yes")
# Whether to enable compatibility with the legacy v0 API.
AC_ARG_ENABLE(v0, AS_HELP_STRING([--enable-v0[=ARG]], [enable compatibility with v0 API [default=yes]]))
AM_CONDITIONAL(V0_ENABLED, test "x$enable_v0" != "xno")
# Whether to enable code coverage.
AX_CODE_COVERAGE
# Check if lcov >= 2.0
AS_IF([test x"$enable_code_coverage" = xyes],
[AX_COMPARE_VERSION($(lcov --version|cut -f 4 -d " " | cut -f 1 -d -), [ge], [2.0],
[have_lcov_2=yes], [have_lcov_2=no])
],
[have_lcov_2=no])
AM_CONDITIONAL(LCOV_VERSION_2, test x"$have_lcov_2" = x"yes")
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h stdio.h assert.h unistd.h linux/io_uring.h linux/aio_abi.h])
# Checks for library functions and definitions.
AC_CHECK_DECLS(RWF_NOWAIT, [], [AC_MSG_ERROR(Linux kernel >= 4.14 required.)], [#include ])
# Check if zfs >= 0.8.0 is available (for direct I/O support).
AC_CHECK_PROG(have_zfs, zfs, yes)
AS_IF([test x"$have_zfs" = x"yes"],
[AX_COMPARE_VERSION($(cat /sys/module/zfs/version | cut -f 1 -d -), [ge], [0.8.0],
[AC_DEFINE(RAFT_HAVE_ZFS_WITH_DIRECT_IO)], [])
],
[])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Enable large file support. This is mandatory in order to interoperate with
# libuv, which enables large file support by default, making the size of 'off_t'
# on 32-bit architecture be 8 bytes instead of the normal 4.
AC_SYS_LARGEFILE
CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-std=c11 \
-g \
-pipe \
])
AS_IF([test "x$enable_hardening" != "xno"],
[CC_CHECK_FLAGS_APPEND([AM_CFLAGS],[CFLAGS],[ \
-fcf-protection \
--param=ssp-buffer-size=4 \
-fdiagnostics-color \
-fexceptions \
-fstack-clash-protection \
-fstack-protector-strong \
-fasynchronous-unwind-tables \
-fdiagnostics-show-option \
-Wall \
-Wextra \
-Wpedantic \
-Wimplicit-fallthrough=5 \
-Wcast-align \
-Wstrict-prototypes \
-Wlogical-op \
-Wmissing-include-dirs \
-Wold-style-definition \
-Winit-self \
-Wfloat-equal \
-Wsuggest-attribute=noreturn \
-Wformat=2 \
-Wendif-labels \
-Wdate-time \
-Wnested-externs \
-Wconversion \
-Werror=implicit-function-declaration \
-Wunused-but-set-variable \
-Werror=return-type \
-Werror=incompatible-pointer-types \
-Wshadow \
-Werror=overflow \
-Werror=shift-count-overflow \
-Werror=shift-overflow=2 \
-Warray-bounds \
-Wrestrict \
-Wreturn-local-addr \
-Wstringop-overflow \
])],
[])
AC_SUBST(AM_CFLAGS)
AS_IF([test "x$enable_hardening" != "xno"],
[CC_CHECK_FLAGS_APPEND([AM_LDFLAGS],[LDFLAGS],[ \
-z relro \
-z now \
-fstack-protector-strong \
--param=ssp-buffer-size=4 \
])],
[])
AC_SUBST(AM_LDLAGS)
AC_SUBST(enable_v0)
AC_CONFIG_FILES([include/raft.h raft.pc Makefile])
AC_OUTPUT
raft-0.22.0/docs/ 0000775 0000000 0000000 00000000000 14561422115 0013460 5 ustar 00root root 0000000 0000000 raft-0.22.0/docs/_themes/ 0000775 0000000 0000000 00000000000 14561422115 0015104 5 ustar 00root root 0000000 0000000 raft-0.22.0/docs/_themes/material/ 0000775 0000000 0000000 00000000000 14561422115 0016702 5 ustar 00root root 0000000 0000000 raft-0.22.0/docs/_themes/material/genindex.html 0000664 0000000 0000000 00000000321 14561422115 0021365 0 ustar 00root root 0000000 0000000 {#
basic/genindex.html
~~~~~~~~~~~~~~~~~~~
Template for an "all-in-one" index.
:copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
raft-0.22.0/docs/_themes/material/layout.html 0000664 0000000 0000000 00000011407 14561422115 0021110 0 ustar 00root root 0000000 0000000
{%- macro css() %}
{%- for css in css_files %}
{%- if css|attr("filename") %}
{{ css_tag(css) }}
{%- else %}
{%- endif %}
{%- endfor %}
{%- endmacro %}
{%- macro header() %}
{%- endmacro %}
{%- macro navigation() %}