| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | | |
tracking database used to track delegations and revoke. This is because the recovery will implicitely result in a revoke of all delegations.
(This used to be ctdb commit b5520933b9922d6af6f59f535824e1cdacb9f774)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
database supports readonly operations or not. Add a private lock-less tdb file to the ctdb_db_context to use for tracking delegarions for records
Assume all databases will support readonly mode for now and se thte flag for all databases. At later stage we will add support to control on a per database level whether delegations will be supported or not.
(This used to be ctdb commit 502f86f79944df4bac9094f716e54110c511dc24)
|
| | |
| | |
| | |
| | |
| | |
| | | |
readonly delegations and revoke
(This used to be ctdb commit 9985a97e11688f3f688bb84e1180fd57c42077f4)
|
| | |
| | |
| | |
| | |
| | |
| | | |
The API for this function has changed since the 1.2 branch where readonly locks are being merged from
(This used to be ctdb commit d01b9716d3e50f4c6d102e8411f0401b0f499699)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
catdb' in that 'cattdb' will always traverse the local tdb file only, while 'catdb' does a cluster traverse.
Since some record flags may differ between nodes in the cluster when read only delegations are in use, cattdb is needed when you need to know the exact flag settings on the current node itself.
(This used to be ctdb commit d2342b680a3a8160d903d12550b86ee21c8b277d)
|
| | |
| | |
| | |
| | |
| | |
| | | |
to print its content.
(This used to be ctdb commit 5eaa9a8683babac27f9f0144ff4cb5364fcd54f6)
|
| | |
| | |
| | |
| | |
| | |
| | | |
of delegations
(This used to be ctdb commit 875b0bede217547b51f02648b6a28a3c98b6b949)
|
| | |
| | |
| | |
| | |
| | |
| | | |
the RSN by 10 and writes the new content to the record as sprintf("%d", rsn)
(This used to be ctdb commit 151b25798f2a2c182fc9557c1c1ea0f3ef0ad3fe)
|
| | |
| | |
| | |
| | | |
(This used to be ctdb commit 74a5b3d7bafd8827a4ee80095fde5798263821e4)
|
| | |
| | |
| | |
| | |
| | |
| | | |
enumerate the bitmap of nodes to where we have readonly delegations
(This used to be ctdb commit bfdeda30ee0e359f06dd5714864f8beae22b0736)
|
| | |
| | |
| | |
| | |
| | |
| | | |
nodes that we are tracking as having a readonly delegation
(This used to be ctdb commit d10084e62d37674bb8d9e31d457fd23e050545be)
|
| | |
| | |
| | |
| | |
| | |
| | | |
This function differs from the old FETCH in that this function will also fetch the record header and not just the record data
(This used to be ctdb commit c7196d16e8e03bb2a64be164d15a7502300eae0e)
|
| | |
| | |
| | |
| | |
| | |
| | | |
CQ S1028400
(This used to be ctdb commit 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562)
|
| |\ \
| | | |
| | | |
| | | | |
(This used to be ctdb commit 7bebfc7bad8f36e54003b8e25372fdaf54836e21)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Rebase the CTDB PMDA from 1.0.114 to master:
- Add tevent and ctdb_protocol includes
- Handle latency metrics now stored under struct latency_counter
- Add new metric for the num_recoveries counter
(This used to be ctdb commit 2165a6f5117a71f9f97f46be9708fa34c037e17c)
|
| | | |
| | | |
| | | |
| | | | |
(This used to be ctdb commit b63333fb81aadc451df47c0c3c038e6165f0eac2)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Also includes some code cleanup changes.
(This used to be ctdb commit 80ad2979804f5bba29020ace46e114a45fa6cb66)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently ctdb statistics are pulled in the PMDA fetch callback, which
results in a CTDB_CONTROL_STATISTICS call for each metric.
Do this once per fetch instead, and have the per-metric callbacks pull
data from the last counter cache.
(This used to be ctdb commit 137b498c75c55c966999cd788f12ed9010cfed3a)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Attempt to reconnect to ctdbd on fetch while it is unreachable.
We must provide our own queue callback wrapper, as ctdb_client_read_cb()
exits on transport failure.
(This used to be ctdb commit 28df6fbf1273b8d095a2bc38dca6a6c35c5c31bd)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The CTDB Performance Metrics Domain Agent (PMDA) is compiled when
Performance Co-Pilot (PCP) header files are present.
The CTDB PMDA periodically requests runtime counters from ctdbd (similar
to ctdb statistics) and exports these values via PCP for capture and
charting etc.
(This used to be ctdb commit fe7f69d6fc37661c2f1caa11de4ed3a7940d0a2f)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Regular "ctdb status" output flags which node is the local node, do the
same for machine readable output.
(This used to be ctdb commit 3885141f37724b3dea61b45fbac38489ec356588)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Rather than using a fixed 2 second CTDB_CONTROL_GETDBPATH timeout.
(This used to be ctdb commit 9e178671560cb95121e11d718a76b05380ecd6c5)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Following connection to the local ctdbd, ctdb_cmdline_client() currently
issues a CTDB_CONTROL_GET_PNN request with a fixed 3 second timeout.
The ctdb cmd line client accepts a --timelimit argument for specifying
a per request timeout, pass this value through to ctdb_cmdline_client()
for use as a CTDB_CONTROL_GET_PNN request timeout.
(This used to be ctdb commit 0634d0305f42f17048b6830733767e8dc300e11c)
|
| |\ \ \
| | |/ /
| |/| |
| | | | |
(This used to be ctdb commit a3e8784bb107f7acd2a95913c1e6def52ce96105)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
all interfaces referenced by the public address list actually exists.
This will make it much easier to root-cause problems such as
S1029023
when an external application deleted the interface while it is still is in use by ctdbd.
(This used to be ctdb commit 9abf9c919a7e6789695490e2c3de56c21b63fa57)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
check that the actual interface exist, print error and fail startup if the interface does not exist.
(This used to be ctdb commit cd33bbe6454b7b0316bdfffbd06c67b29779e873)
|
| |\ \ \
| | |/ /
| |/| |
| | | | |
(This used to be ctdb commit 32320ee278d1eec9aef18b400c0ddaa445d4211e)
|
| | | |
| | | |
| | | |
| | | | |
(This used to be ctdb commit 9bded1832179fbadc8bc94c5328ffa6c45a6d2ab)
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When set to 0, clients will not be able to attach to databases
via the db_attach control. This might can be useful for maintenance
where ctdb should be kept running but clients should not be able
to modify databases.
(This used to be ctdb commit ddfeecda87955b4e46777599f678e6926d37f4c4)
|
| | |
| | |
| | |
| | |
| | |
| | | |
not available
(This used to be ctdb commit cdbc800a776f213cfd0ed543cee85b0d1714a186)
|
| | |
| | |
| | |
| | |
| | |
| | | |
an unneeded dependency on having a standalone tdb library installed
(This used to be ctdb commit 9118b9cf1634866266fbf0a9bf857a622f994a1a)
|
| | |
| | |
| | |
| | | |
(This used to be ctdb commit ee9bf1565383bcca70950e9c20fe6b4d0181ce8d)
|
| |\ \
| | | |
| | | |
| | | | |
(This used to be ctdb commit 71080adfe0828e15bf2f4b0bee7d52e06fff3449)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Running "./run_tests -s simple/* multievent/*" results in a stupid
summary. Will need to work on that...
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 999c68948da1492ac4d728c6bf79ad4921d9e840)
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit f527ffb55b514b5cb4df3471a0e17ab71307e8a1)
|
| | |\ \
| | | | |
| | | | |
| | | | | |
(This used to be ctdb commit 1c9dadf02ca649e3f09d9edd778bf13e001aa849)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit edc34d01a1ad83b1335c976593a006166b196569)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 698af79545986cf788686feb06c4677a10eec770)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Just like simple_test() but 1st arg is the event name.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 69e240e15488e228c0232fdc8804af778cb4e6fc)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 8f8dc5636436db28ce7d0edd706a4adf2624e71b)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
$event may not be set so we need to test for it.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 80f14e590242b14829c6309ee908af0f2d33be1e)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 0446eaa7798fd0ddf8d8f067c56d19892a13a317)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit c490024aba39cf94cbc9f8f41ecb3d336b1c82a8)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Some of the tests expect the default to be
CTDB_SERVICE_AUTOSTARTSTOP=yes
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit f7de037e3be2e9910bee644dd1e93bae4912a194)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Expect "ctdb checktcpport" to exit with 1 if not implemented.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 20885d592040eb3945524c558b593a1d50a57b43)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit b231aa629b909a7dfd071236c7e730e3cc4a1a54)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This one should fall back to netstat.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 0a08068f736efe56b4799e1f1f90539d257deb71)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 47f2843b4db767bcc724d8f972e0c2a850d5826f)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 9e3e6ab3edf0f79d5973eb39ed843d3c369c665d)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This allowed a single ctdb command to be defined as not-implemented
and provided the associated output from the ctdb stub in
$ctdb_not_implemented.
Signed-off-by: Martin Schwenke <martin@meltin.net>
(This used to be ctdb commit 3852c091f5e0ecba06b7131ca04b73a0cd632f23)
|