]> git.ipfire.org Git - thirdparty/samba.git/log
thirdparty/samba.git
18 years agoadded IP takeover logic for public IPs to ctdb
Andrew Tridgell [Fri, 25 May 2007 07:04:13 +0000 (17:04 +1000)] 
added IP takeover logic for public IPs to ctdb
(This used to be ctdb commit 374adb729472670f35cef41269b8719f49c0de0e)

18 years agomerge from ronnie
Andrew Tridgell [Fri, 25 May 2007 04:53:21 +0000 (14:53 +1000)] 
merge from ronnie
(This used to be ctdb commit 4a74c61785a6a0181112fb87356207ce9d4854f6)

18 years agoadd controls to take over and release an ip address
Ronnie Sahlberg [Fri, 25 May 2007 03:05:25 +0000 (13:05 +1000)] 
add controls to take over and release an ip address
add sending of grat arp     both normal grat arp (request) and also
unsolicited grat arp replies

(This used to be ctdb commit 7305c00c21c30bdbafc3722a018513378bd307e6)

18 years agomerge from tridge
Ronnie Sahlberg [Thu, 24 May 2007 06:06:23 +0000 (16:06 +1000)] 
merge from tridge

(This used to be ctdb commit 4041d78de3bf568ea12d6e5ae48791a5a5656aaa)

18 years agomake ctdbd realtime if possible
Andrew Tridgell [Thu, 24 May 2007 04:52:10 +0000 (14:52 +1000)] 
make ctdbd realtime if possible
(This used to be ctdb commit 8852f6cca52b64a5239c83ab7c6a99ae4edb2597)

18 years agoraise the control timeout in recovery
Andrew Tridgell [Thu, 24 May 2007 03:49:27 +0000 (13:49 +1000)] 
raise the control timeout in recovery
(This used to be ctdb commit 43424ff66daf28c202c12982f20a9f662b6fb125)

18 years agomerge from ronnie
Andrew Tridgell [Thu, 24 May 2007 00:10:02 +0000 (10:10 +1000)] 
merge from ronnie
(This used to be ctdb commit f31e750760bd98e2214ea76f359824aca6f5826f)

18 years agoadd a new command for ctdb_control to trigger a recovery
Ronnie Sahlberg [Wed, 23 May 2007 22:08:45 +0000 (08:08 +1000)] 
add a new command for ctdb_control to trigger a recovery

(This used to be ctdb commit 6da2a4ab1b9c955d55a1c6817506a74539623892)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 23 May 2007 21:33:04 +0000 (07:33 +1000)] 
merge from tridge

(This used to be ctdb commit 74077fb37aaaef2682f4a5bbcf7bb88a5f4fca46)

18 years agofixed %d which should be %u
Andrew Tridgell [Wed, 23 May 2007 10:15:09 +0000 (20:15 +1000)] 
fixed %d which should be %u
(This used to be ctdb commit 2792cf718ff1e66fe99f870f683a13baa160f629)

18 years agofixed some memory leaks on the traverse code
Andrew Tridgell [Wed, 23 May 2007 10:06:37 +0000 (20:06 +1000)] 
fixed some memory leaks on the traverse code
(This used to be ctdb commit 2781cbb7d00c5448449216c8c0c1b37bdc74a6c0)

18 years agoadded automatic vacuuming of empty records during recovery
Andrew Tridgell [Wed, 23 May 2007 07:21:14 +0000 (17:21 +1000)] 
added automatic vacuuming of empty records during recovery
(This used to be ctdb commit f9181a784ac7009df5e9c996f4e0c3e99098b59a)

18 years ago- get rid of ctdb_ctrl_get_config
Andrew Tridgell [Wed, 23 May 2007 05:18:30 +0000 (15:18 +1000)] 
- get rid of ctdb_ctrl_get_config
- cope with zero timeout in ctdb_control

(This used to be ctdb commit 9f24689eb0ad6813f1ac78e033cdffe5d8afb128)

18 years agomerge from ronnie
Andrew Tridgell [Wed, 23 May 2007 04:50:41 +0000 (14:50 +1000)] 
merge from ronnie
(This used to be ctdb commit 267481b67152bc5885884d223085aa9ef5fe73bd)

18 years ago- startup frozen, and do an initial recovery
Andrew Tridgell [Wed, 23 May 2007 04:35:19 +0000 (14:35 +1000)] 
- startup frozen, and do an initial recovery
- fixed a bug in traverse
- get a lock on the node list file in the recmaster recovery daemon

(This used to be ctdb commit 162a5647535ad1cb3e8e5d4042a2784365fb1913)

18 years agostart ctdb frozen, and let the election sort things out. This prevents a race on...
Andrew Tridgell [Wed, 23 May 2007 02:23:07 +0000 (12:23 +1000)] 
start ctdb frozen, and let the election sort things out. This prevents a race on startup
(This used to be ctdb commit b788ed3fa64e31e517b4e602e8bd3ae7201ecddd)

18 years agoglobal lock should imply the transaction lock
Andrew Tridgell [Tue, 22 May 2007 03:14:51 +0000 (13:14 +1000)] 
global lock should imply the transaction lock
(This used to be ctdb commit 765a7e27344476ea8835565839b69872ea6ab6f0)

18 years agoadd controls to enable/disable the monitoring of dead nodes
Ronnie Sahlberg [Sun, 20 May 2007 23:24:34 +0000 (09:24 +1000)] 
add controls to enable/disable the monitoring of dead nodes

(This used to be ctdb commit 79d29c39bb81feb069db3fc6d3d392c1e75a4d13)

18 years agomerge from tridge
Ronnie Sahlberg [Sat, 19 May 2007 22:18:39 +0000 (08:18 +1000)] 
merge from tridge

(This used to be ctdb commit a0bf1f65d2ac0bd92ae24663c4239393404a2995)

18 years agoshow ctdb control timeout
Andrew Tridgell [Sat, 19 May 2007 11:11:06 +0000 (21:11 +1000)] 
show ctdb control timeout
(This used to be ctdb commit 03921eacb942c7aa6b81236c6603dc640cefe2bf)

18 years agomerge from ronnie
Andrew Tridgell [Sat, 19 May 2007 07:21:58 +0000 (17:21 +1000)] 
merge from ronnie
(This used to be ctdb commit 985d718e03510398b9a5cfdf6a4d559a90738a11)

18 years agouse ctdb_dead_node() instead of reimplementing the same code again
Ronnie Sahlberg [Sat, 19 May 2007 06:59:10 +0000 (16:59 +1000)] 
use ctdb_dead_node() instead of reimplementing the same code again
this leaves only one single function where a node is marked as dead
instead of two places

(This used to be ctdb commit aa764ea26cc26d5c1ae188105236da603576f45b)

18 years agoremoved obsolete ctdb_dump tool
Andrew Tridgell [Sat, 19 May 2007 04:07:01 +0000 (14:07 +1000)] 
removed obsolete ctdb_dump tool
(This used to be ctdb commit e3ed6fd65896f07fc76405acb2e16f50f04a0a3c)

18 years agodon't count packets received from before the transport told us the node was dead
Andrew Tridgell [Sat, 19 May 2007 04:04:48 +0000 (14:04 +1000)] 
don't count packets received from before the transport told us the node was dead
(This used to be ctdb commit 46b5319963afa9da6cf6d83f2a5dc1fa664e14b4)

18 years agonicer date formatting
Andrew Tridgell [Sat, 19 May 2007 04:01:02 +0000 (14:01 +1000)] 
nicer date formatting
(This used to be ctdb commit 78c256caa738593e335de65df752ff015f3a38e1)

18 years agomake sure we don't increment rx_cnt for redirected packets, or for packets that have...
Andrew Tridgell [Sat, 19 May 2007 03:45:24 +0000 (13:45 +1000)] 
make sure we don't increment rx_cnt for redirected packets, or for packets that have been requeued after a lockwait
(This used to be ctdb commit 92e5569407dba173a27e9645b4339ce3e2c00520)

18 years agomerge tx_cnt code from ronnie
Andrew Tridgell [Sat, 19 May 2007 03:18:56 +0000 (13:18 +1000)] 
merge tx_cnt code from ronnie
(This used to be ctdb commit 8e17c9bff1b80374709f9c712bc9dc971e5d3f6e)

18 years agoincrease the tx_cnt everytime we send a packet to a node
Ronnie Sahlberg [Sat, 19 May 2007 00:27:17 +0000 (10:27 +1000)] 
increase the tx_cnt everytime we send a packet to a node

(This used to be ctdb commit d3fea0d87268e552f4ed3a90d10b3af209413f73)

18 years agoadd a node->tx_cnt counter
Ronnie Sahlberg [Sat, 19 May 2007 00:20:19 +0000 (10:20 +1000)] 
add a node->tx_cnt counter

only send keepalive packets if the count is zero

(This used to be ctdb commit 2cbd424231caccf0a531cf6501761115efe68f3e)

18 years agomerge from tridge
Ronnie Sahlberg [Sat, 19 May 2007 00:12:37 +0000 (10:12 +1000)] 
merge from tridge

(This used to be ctdb commit af1eb92c7bdc26457f55b21ca96a496f55ea300b)

18 years agoa better way to resend calls after recovery
Andrew Tridgell [Fri, 18 May 2007 14:56:49 +0000 (00:56 +1000)] 
a better way to resend calls after recovery
(This used to be ctdb commit 444f52e134fc22aaf254d05c86d8b357ded876f4)

18 years agotimeout pending controls immediately when a node becomes disconnected
Andrew Tridgell [Fri, 18 May 2007 13:48:29 +0000 (23:48 +1000)] 
timeout pending controls immediately when a node becomes disconnected
(This used to be ctdb commit 93c4b16f4efef383ba8db83953019ef4821613e0)

18 years ago- up rx_cnt on all packet types
Andrew Tridgell [Fri, 18 May 2007 13:23:36 +0000 (23:23 +1000)] 
- up rx_cnt on all packet types
- notice when a node becomes available again

(This used to be ctdb commit e05110dd6112e81f224937dfd7370d963ce9531a)

18 years agomerge keepalive code from ronnie
Andrew Tridgell [Fri, 18 May 2007 12:11:58 +0000 (22:11 +1000)] 
merge keepalive code from ronnie
(This used to be ctdb commit 0218a8eafe3889e0996a375bf54fa5306e719392)

18 years agoadd a missing file :-)
Ronnie Sahlberg [Fri, 18 May 2007 10:06:29 +0000 (20:06 +1000)] 
add a missing file :-)

(This used to be ctdb commit 29cf1b927f2cebfdc43e22d32a270e956716e2c5)

18 years agoadd dead node detection so that if a node does not generate any
Ronnie Sahlberg [Fri, 18 May 2007 09:19:35 +0000 (19:19 +1000)] 
add dead node detection   so that if a node does not generate any
keepalive traffic for x seconds   it is deemed dead

this triggers a recovery after a while if a ctdbd has been STOPPED
but it doesnt recover automatically when the node reappears

(This used to be ctdb commit d6324afe0d13b5e21d06e347caca433c6b36a32a)

18 years agomerge from tridge
Ronnie Sahlberg [Fri, 18 May 2007 07:10:21 +0000 (17:10 +1000)] 
merge from tridge

(This used to be ctdb commit d045dff2c68d6d7fcf8e7c5037908fab3d55a16f)

18 years agomerge from samba4
Andrew Tridgell [Fri, 18 May 2007 01:24:45 +0000 (11:24 +1000)] 
merge from samba4
(This used to be ctdb commit 3028a1b5c21b981c4487b55f026e6645bbeada89)

18 years agomerge from samba4
Andrew Tridgell [Thu, 17 May 2007 22:33:10 +0000 (08:33 +1000)] 
merge from samba4
(This used to be ctdb commit b280bb01fc9afea5a9168c63d92907dac725b22b)

18 years ago- don't try to send controls to dead nodes
Andrew Tridgell [Thu, 17 May 2007 13:23:41 +0000 (23:23 +1000)] 
- don't try to send controls to dead nodes
- use only connected nodes in a traverse

(This used to be ctdb commit 9a676dd5d331022d946a56c52c42fc6985b93dbc)

18 years agomerged from samba4
Andrew Tridgell [Thu, 17 May 2007 07:54:02 +0000 (17:54 +1000)] 
merged from samba4
(This used to be ctdb commit 23b1c00f8bf60739aee935bac44981b68477ee1f)

18 years agoremoved the CTDB_CTRL_FLAG_NOREQUEUE flag
Andrew Tridgell [Thu, 17 May 2007 04:10:38 +0000 (14:10 +1000)] 
removed the CTDB_CTRL_FLAG_NOREQUEUE flag
(This used to be ctdb commit 366e849f6f350eda78d79cf1ea55c2637e605c86)

18 years agomerge from ronnie
Andrew Tridgell [Thu, 17 May 2007 02:46:50 +0000 (12:46 +1000)] 
merge from ronnie
(This used to be ctdb commit f80c4b02ffb474a4710fa411123448e3ce2d004a)

18 years agomerged debug changes from samba4
Andrew Tridgell [Thu, 17 May 2007 02:43:09 +0000 (12:43 +1000)] 
merged debug changes from samba4
(This used to be ctdb commit f01180148635b9fcc0f50beddb87be0a2071dfd4)

18 years agomerged events changes from samba4
Andrew Tridgell [Thu, 17 May 2007 02:39:53 +0000 (12:39 +1000)] 
merged events changes from samba4
(This used to be ctdb commit cd9280556663bc8929672ada6ea556e097c4b2b3)

18 years agowe no longer pass lmaster across during pulldb so dont print it from
Ronnie Sahlberg [Thu, 17 May 2007 02:07:29 +0000 (12:07 +1000)] 
we no longer pass lmaster across during pulldb    so dont print it from
catdb either

(This used to be ctdb commit b57d60f4789ea7f0dd69c93f6629d8742e182576)

18 years agomerge shutdown control from ronnie
Andrew Tridgell [Thu, 17 May 2007 00:48:43 +0000 (10:48 +1000)] 
merge shutdown control from ronnie
(This used to be ctdb commit 61bfe26dde0bfd494d4f12f0aa2a3bb78852ab31)

18 years agoadd a control to shutdown/kill a node
Ronnie Sahlberg [Thu, 17 May 2007 00:45:31 +0000 (10:45 +1000)] 
add a control to shutdown/kill a node

(This used to be ctdb commit 3802f7304fd59d56062c855987e2561753e85a69)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 16 May 2007 08:44:51 +0000 (18:44 +1000)] 
merge from tridge

(This used to be ctdb commit 0c6dc471e33e80db00a2b006262c4107f39fa023)

18 years ago- merge from ronnie
Andrew Tridgell [Wed, 16 May 2007 08:10:26 +0000 (18:10 +1000)] 
- merge from ronnie
- fixed a memory leak found by dmitry

(This used to be ctdb commit ae87bf0005666b50850161c3843d6bc7cb5c8971)

18 years agoremove a prototype we no longer need
Ronnie Sahlberg [Wed, 16 May 2007 04:45:43 +0000 (14:45 +1000)] 
remove a prototype we no longer need

(This used to be ctdb commit 4a11373ec5e8196cf430f18f6171915f790f794b)

18 years agoif a caller specifies a timeout when calling a control, it makes no
Ronnie Sahlberg [Wed, 16 May 2007 02:34:30 +0000 (12:34 +1000)] 
if a caller specifies a timeout when calling a control, it makes no
sense to have the daemon requeue the packets if they timeout or fail to
deliver to the remote node

(This used to be ctdb commit 9fb753046787190970654aeb937e96685ac53184)

18 years agomerge from tridge
Ronnie Sahlberg [Wed, 16 May 2007 01:12:28 +0000 (11:12 +1000)] 
merge from tridge

(This used to be ctdb commit 8d424b41d6cf2973b28a749d1b8e6a028dad9ffe)

18 years agoenable TCP keepalives
Andrew Tridgell [Tue, 15 May 2007 08:40:56 +0000 (18:40 +1000)] 
enable TCP keepalives
(This used to be ctdb commit a44f760f6260359201d8431d2f1267af2bc6b1b1)

18 years agomoved the recovery daemon into the main ctdbd and enable it by default
Andrew Tridgell [Tue, 15 May 2007 05:13:36 +0000 (15:13 +1000)] 
moved the recovery daemon into the main ctdbd and enable it by default
(This used to be ctdb commit 2a7d42124731f43d013cb76a798525eab4cc1ee0)

18 years agofixed two more places where we don't correctly handle write errors on sockets
Andrew Tridgell [Tue, 15 May 2007 04:08:58 +0000 (14:08 +1000)] 
fixed two more places where we don't correctly handle write errors on sockets
(This used to be ctdb commit f4a71bb63e7f75d21b66f9eaeac997c2029cd146)

18 years agomerge from tridge
Ronnie Sahlberg [Tue, 15 May 2007 00:34:14 +0000 (10:34 +1000)] 
merge from tridge

(This used to be ctdb commit eb64cde53ec5ed6949df1684e5c148f2294b1da7)

18 years agofixed a fd close error on reconnect
Andrew Tridgell [Tue, 15 May 2007 00:33:28 +0000 (10:33 +1000)] 
fixed a fd close error on reconnect
(This used to be ctdb commit 240651a6f67f914b06e273696cef6180d788221e)

18 years agomerge from tridge
Ronnie Sahlberg [Tue, 15 May 2007 00:28:41 +0000 (10:28 +1000)] 
merge from tridge

(This used to be ctdb commit 0697f59a044deeab126a39bff97bcd5c1101298e)

18 years agoadded a control to get the local vnn
Andrew Tridgell [Tue, 15 May 2007 00:17:16 +0000 (10:17 +1000)] 
added a control to get the local vnn
(This used to be ctdb commit 0b109f574b710f290372512d0694290ea7cd4368)

18 years agocheck for error on ctdb_ltdb_store
Andrew Tridgell [Tue, 15 May 2007 00:16:59 +0000 (10:16 +1000)] 
check for error on ctdb_ltdb_store
(This used to be ctdb commit c4a34bac4ad4d2f9699e08074668d25586e3c0da)

18 years agoadded a -i switch to run ctdbd without forking
Andrew Tridgell [Mon, 14 May 2007 23:44:33 +0000 (09:44 +1000)] 
added a -i switch to run ctdbd without forking
(This used to be ctdb commit 327df14ecd58f405fbe8b38afa2ee54a8dd0a2e4)

18 years agoreading on the write side of a pipe isn't allowed - this caused us to run without...
Andrew Tridgell [Mon, 14 May 2007 23:44:03 +0000 (09:44 +1000)] 
reading on the write side of a pipe isn't allowed - this caused us to run without locking in the lockwait code
(This used to be ctdb commit 2ac67ce737f30258915cc25bde531d361092ae14)

18 years agoAIX needs sin_len field for bind()
Andrew Tridgell [Mon, 14 May 2007 23:42:52 +0000 (09:42 +1000)] 
AIX needs sin_len field for bind()
(This used to be ctdb commit cd6c35d4aa4f4a4cfeedf6902cda84e43d7aeba4)

18 years agomerge from tridge
Ronnie Sahlberg [Mon, 14 May 2007 04:07:19 +0000 (14:07 +1000)] 
merge from tridge

(This used to be ctdb commit d1dae4fc8f4c2d16d313a27968d67c5825a133d1)

18 years agomerge from tridge
Ronnie Sahlberg [Mon, 14 May 2007 04:05:49 +0000 (14:05 +1000)] 
merge from tridge

(This used to be ctdb commit 65f4415e618dbbac0260f6a4e51e051e6df64a61)

18 years agowe must not free the fde until after we no longer need the lock child
Andrew Tridgell [Mon, 14 May 2007 04:01:33 +0000 (14:01 +1000)] 
we must not free the fde until after we no longer need the lock child
(This used to be ctdb commit e06776c7c37b63f5c3165c7043d665e0c1a95337)

18 years agokill the lockwait child if the pipe goes away
Andrew Tridgell [Mon, 14 May 2007 03:49:01 +0000 (13:49 +1000)] 
kill the lockwait child if the pipe goes away
(This used to be ctdb commit bdfa8ba9932fade074a05a6cb6bc14ae3b84618c)

18 years agodon't allow setvnnmap while not frozen
Andrew Tridgell [Mon, 14 May 2007 03:48:40 +0000 (13:48 +1000)] 
don't allow setvnnmap while not frozen
(This used to be ctdb commit a73f47f565894cc7e346177d87f2e6813837e1c6)

18 years agodon't allow setrecmaster while not frozen
Andrew Tridgell [Mon, 14 May 2007 03:48:14 +0000 (13:48 +1000)] 
don't allow setrecmaster while not frozen
(This used to be ctdb commit e84b05ba6062ffc45b7f3c23e88feef1d39069c4)

18 years agoremove the control to bump the rsn since we dont need it anymore
Ronnie Sahlberg [Sun, 13 May 2007 22:03:48 +0000 (08:03 +1000)] 
remove the control to bump the rsn since we dont need it anymore

(This used to be ctdb commit a646b6d77bd8adf6c986259c534a05400c4bde11)

18 years agoadd a mising parameter to the new signature for ctdb_control
Ronnie Sahlberg [Sun, 13 May 2007 20:50:24 +0000 (06:50 +1000)] 
add a mising parameter to the new signature for ctdb_control

(This used to be ctdb commit 3a3304cd48d644c758f416ec283faf3ba9690c04)

18 years agomerge from tridge
Ronnie Sahlberg [Sun, 13 May 2007 20:25:15 +0000 (06:25 +1000)] 
merge from tridge

(This used to be ctdb commit 7bca79ad6357149fd7c6b28ce4b05de3d223a7de)

18 years agomake sure the ctdb control socket is secure
Andrew Tridgell [Sat, 12 May 2007 23:20:16 +0000 (09:20 +1000)] 
make sure the ctdb control socket is secure
(This used to be ctdb commit 2954f2e501a418af578e75e8705b0b39a77c1861)

18 years agoadded error messages in ctdb_control replies
Andrew Tridgell [Sat, 12 May 2007 11:25:26 +0000 (21:25 +1000)] 
added error messages in ctdb_control replies
(This used to be ctdb commit bd848f5b760e6b2a73ebfc67fd8adb3c31479fb5)

18 years agoprioritise the dmaster in case of matching rsn
Andrew Tridgell [Sat, 12 May 2007 09:57:12 +0000 (19:57 +1000)] 
prioritise the dmaster in case of matching rsn
(This used to be ctdb commit 4996a12174aa0d215a5b14cb970bdf83eed34a39)

18 years agothe invalid dmaster is no longer needed in recovery
Andrew Tridgell [Sat, 12 May 2007 09:56:31 +0000 (19:56 +1000)] 
the invalid dmaster is no longer needed in recovery
(This used to be ctdb commit bd638ea63d11485bc3a8c50d923262a48095c2f3)

18 years agothe retry client code is no longer needed now that we use a freeze on recovery
Andrew Tridgell [Sat, 12 May 2007 09:55:55 +0000 (19:55 +1000)] 
the retry client code is no longer needed now that we use a freeze on recovery
(This used to be ctdb commit 4213475a2db93b149705bfbb578c78936124c608)

18 years agoensure we propogate the correct rsn for a request dmaster
Andrew Tridgell [Sat, 12 May 2007 09:55:18 +0000 (19:55 +1000)] 
ensure we propogate the correct rsn for a request dmaster
(This used to be ctdb commit 70c1c67db865db8a49b56e8e3e8fd56ec5063208)

18 years agosimplify the generation checking on incoming call packets
Andrew Tridgell [Sat, 12 May 2007 09:54:40 +0000 (19:54 +1000)] 
simplify the generation checking on incoming call packets
(This used to be ctdb commit 87ee47f7fbbf71228bc9cc16faff86b4c59333a2)

18 years agomake sure we ignore requeued ctdb_call packets of older generations except for packet...
Andrew Tridgell [Sat, 12 May 2007 08:08:50 +0000 (18:08 +1000)] 
make sure we ignore requeued ctdb_call packets of older generations except for packets from the client
(This used to be ctdb commit facab105fbd7fe50f96bdd763ae50ddc54fbdacc)

18 years agoadded -t option to ctdb_control
Andrew Tridgell [Sat, 12 May 2007 06:04:56 +0000 (16:04 +1000)] 
added -t option to ctdb_control
(This used to be ctdb commit 658141280eeb121a570d71c4b0af36d03004f320)

18 years ago- nicer message if freeze child dies
Andrew Tridgell [Sat, 12 May 2007 05:59:49 +0000 (15:59 +1000)] 
- nicer message if freeze child dies
- change local generation count after recovery/freeze started

(This used to be ctdb commit d9768142797f083a8c09b55d6a8a93cc12089348)

18 years agoshow total frozen/recoving in status
Andrew Tridgell [Sat, 12 May 2007 05:51:08 +0000 (15:51 +1000)] 
show total frozen/recoving in status
(This used to be ctdb commit 0d0eb66a63fe6912edb85bf7387ac76acb70babd)

18 years agoreport number of frozen/thawed nodes
Andrew Tridgell [Sat, 12 May 2007 05:44:56 +0000 (15:44 +1000)] 
report number of frozen/thawed nodes
(This used to be ctdb commit 997720bc0e15d882aefed3464fe285674beed691)

18 years agowatch for the freeze child exiting
Andrew Tridgell [Sat, 12 May 2007 05:44:35 +0000 (15:44 +1000)] 
watch for the freeze child exiting
(This used to be ctdb commit 7f350eca8598022ebd198b2476d1f2c2a8f03a8d)

18 years agomore robust freeze/thaw logic
Andrew Tridgell [Sat, 12 May 2007 05:29:06 +0000 (15:29 +1000)] 
more robust freeze/thaw logic
(This used to be ctdb commit 51c1e51aeb7dfac1683584df7ef1bef98c092f76)

18 years agoseparate out the freeze/thaw handling from recovery
Andrew Tridgell [Sat, 12 May 2007 05:15:27 +0000 (15:15 +1000)] 
separate out the freeze/thaw handling from recovery
(This used to be ctdb commit 0b0640bd8b8334961f240e0cf276ac112cd6e616)

18 years agoadded lockwait child code for entering recovery mode. A child processes holds lockall...
Andrew Tridgell [Sat, 12 May 2007 04:34:21 +0000 (14:34 +1000)] 
added lockwait child code for entering recovery mode. A child processes holds lockall locks for the entire recovery process
(This used to be ctdb commit f892f30def75b0d964c35eae38c4cf675597dd28)

18 years agoadded _mark calls for tdb_lockall
Andrew Tridgell [Sat, 12 May 2007 04:33:10 +0000 (14:33 +1000)] 
added _mark calls for tdb_lockall
(This used to be ctdb commit e59134fd2af67c746b907c23fdcde2eccbbe17cf)

18 years agofixed debug message
Andrew Tridgell [Fri, 11 May 2007 07:29:21 +0000 (17:29 +1000)] 
fixed debug message
(This used to be ctdb commit 9802bf1ef9104b31977020e803b0f81da71c7169)

18 years agowe have to get a NEW generation id after completing recovery
Ronnie Sahlberg [Fri, 11 May 2007 02:03:19 +0000 (12:03 +1000)] 
we have to get a NEW generation id after completing recovery
to solve a race condition with the logic to retransmit in
ctdb_call.c/ctdb_call_timeout()

(This used to be ctdb commit 1044ddca9ff5c434816de35d3f659aa182704e97)

18 years agomerge from tridge
Ronnie Sahlberg [Fri, 11 May 2007 00:37:42 +0000 (10:37 +1000)] 
merge from tridge

(This used to be ctdb commit 826058b547b8e836f0a7066e9479e481ad9c472e)

18 years agoadd a control to bump the rsn number for all records in a database
Ronnie Sahlberg [Fri, 11 May 2007 00:36:47 +0000 (10:36 +1000)] 
add a control to bump the rsn number for all records in a database

use this control from the recovery daemon to ensure that the recmaster
always have a higher rsn than andy other node for the records after
recovery completes

(This used to be ctdb commit 6fb6a8b981a804bfcc460c4481c51c7c647230f6)

18 years ago- merge from ronnie
Andrew Tridgell [Fri, 11 May 2007 00:33:43 +0000 (10:33 +1000)] 
- merge from ronnie
- increment rsn only in become_dmaster
- add torture check for rsn regression in ctdb_ltdb_store

(This used to be ctdb commit 8047506a08bb53ee01aa64f25c9f72839e1e2d68)

18 years agowe must bump the rsn everytime we do a REQ_DMASTER or a REPLY_DMASTER
Ronnie Sahlberg [Thu, 10 May 2007 20:08:17 +0000 (06:08 +1000)] 
we must bump the rsn everytime we do a REQ_DMASTER or a REPLY_DMASTER
to make sure that the "merge records based on rsn during recovery" will
merge correctly.

this is extra important since samba3 never bumps the record when it
writes new data to it !

(This used to be ctdb commit 857e67204065603592c2dbbadbd8667ebba9ccdb)

18 years agomake ctdb_control catdb work again
Ronnie Sahlberg [Thu, 10 May 2007 19:40:11 +0000 (05:40 +1000)] 
make ctdb_control catdb work again

(This used to be ctdb commit 40a8fb68c71be0b9f54ae88bf8aa39a4c71f3b5a)

18 years agomerge from tridge
Ronnie Sahlberg [Thu, 10 May 2007 07:59:51 +0000 (17:59 +1000)] 
merge from tridge

(This used to be ctdb commit f261f554ccf5d85a90f504cc20fc6f1f8b3f14d6)

18 years ago- got rid of the complex hand marshalling in the recovery controls
Andrew Tridgell [Thu, 10 May 2007 07:43:45 +0000 (17:43 +1000)] 
- got rid of the complex hand marshalling in the recovery controls

- fixed the re-send of ctdb calls after a generation change

- fixed a reqid idr leak in controls

- removed the write_record test code

- use the new nonblock lockall code to prevent ctdbd from ever doing a
  blocking lock that could deadlock with smbd

- moved more of the recovery controls into ctdb_recover.c

(This used to be ctdb commit 565a21aa4f1e842309986ab97d6244801153deec)

18 years agoadded nonblocking varients of the two lockall functions to tdb
Andrew Tridgell [Thu, 10 May 2007 07:43:08 +0000 (17:43 +1000)] 
added nonblocking varients of the two lockall functions to tdb
(This used to be ctdb commit 2e99fa41ce01fa282bc0f3244ca42a78173743ed)