Andrew Tridgell
e629252b2c
merge from ronnie
...
(This used to be ctdb commit d21de127cceea7174b2e05701c8846c0b0c881c0)
2007-04-27 16:53:52 +02:00
Andrew Tridgell
eee3912c99
some debug code
...
(This used to be ctdb commit 957801ad6285c21fd11469a60dbdcc170e7009cb)
2007-04-27 16:42:43 +02:00
Ronnie Sahlberg
5b4ebe1345
make srvid 64 bits instead of 32 bits
...
(This used to be ctdb commit 723bcfbba1d5aa711496d37b9658190b78a2d66b)
2007-04-28 00:31:45 +10:00
Ronnie Sahlberg
7d1b82fd09
merge from tridge
...
(This used to be ctdb commit 0d6fb241faa15cb2183d2faa4c5ffa607b9d5f46)
2007-04-27 23:41:45 +10:00
Andrew Tridgell
3dc6331aee
merged broadcast messages from ronnie
...
(This used to be ctdb commit bc20a7de280dbaa5e8ceb5493c51c059aa80d41c)
2007-04-27 15:26:13 +02:00
Ronnie Sahlberg
f616f2de10
add a special VNN that means "all" nodes so that a message can be
...
broadcasted to all daemons in the cluster
change the message dispatch routine for sending messages so that it
allows several clients to use the same srvid
messages are then passed on to all clients that have that srvid
(This used to be ctdb commit 05d7ebb3556785f0f17a87d808f31ffe8dac288a)
2007-04-27 23:16:17 +10:00
Andrew Tridgell
22546add19
debug level controls
...
(This used to be ctdb commit 85f883c081dd1ab069420d2e7f4f2e9d708b3cde)
2007-04-27 15:14:36 +02:00
Andrew Tridgell
837c3cc4b1
nicer testing of control data size
...
(This used to be ctdb commit 67d51cd74c8bbd20cae1da9f04f32ff887fc4f8c)
2007-04-27 14:49:44 +02:00
Andrew Tridgell
5b8bb39b8a
merge from ronnie
...
(This used to be ctdb commit c2ad6820f4526c230178e7d1b66b82103bfed904)
2007-04-27 14:45:45 +02:00
Ronnie Sahlberg
d4c54a93a0
add a new control : SETVNNMAP to set the generation id and also the vnn
...
map on a ctdbd daemon
(This used to be ctdb commit f55707885f7b233ad6ddfc952d08851577063200)
2007-04-27 22:08:12 +10:00
Ronnie Sahlberg
d9edf88ae5
add a control to read the vnnmap configuration from a node
...
add support in ctdb_control to fetch this information from a node
(This used to be ctdb commit 8d7f26c8d78d30c3ccb15a28ddea940d8666e052)
2007-04-27 20:56:10 +10:00
Ronnie Sahlberg
c85caced31
merge from tridge
...
(This used to be ctdb commit d171b27028172754eee7c02def1c93df7aac2bb3)
2007-04-27 19:01:27 +10:00
Andrew Tridgell
1546dba6ad
merge vnn_map code from ronnie
...
(This used to be ctdb commit 01eed862bb007bdb7da61f0521a9a64e0c85e3a2)
2007-04-27 11:01:03 +02:00
Ronnie Sahlberg
ec3856ead9
add a mapping table from a hash value to a lmaster vnn number
...
update ctdb_lmaster() return the lmaster based on this tables contents
initialize the vnn table based on number of nodes for now.
later when recovery is implemented the recovery process will populate
this mapping table.
(This used to be ctdb commit 71e440f6c26ea074f9887237c962101c8cef8c80)
2007-04-27 18:43:52 +10:00
Andrew Tridgell
7d3ab0f5fb
null terminate a string
...
(This used to be ctdb commit a7408802c7bff235bd917d06f98e00e309d2d5ca)
2007-04-26 23:29:26 +02:00
Andrew Tridgell
f0a582e454
got rid of the getdbpath call
...
(This used to be ctdb commit 736ce5c00a1d1b47abb44c4b262b14bfba5202b1)
2007-04-26 23:10:35 +02:00
Andrew Tridgell
afa0876335
added a ctdb_get_config call
...
added a ctdb ping control
(This used to be ctdb commit 7d17378b6e6076a922cffe98239e20dfbbae3bf7)
2007-04-26 19:27:07 +02:00
Andrew Tridgell
fc43701cbb
removed some bogus debug lines
...
(This used to be ctdb commit 25aa579058ecd2a33b13b4c1d6c7c75427bbdafa)
2007-04-26 18:31:13 +02:00
Andrew Tridgell
4a01ec9035
merge from peter
...
(This used to be ctdb commit e340d8d2af90d9a2819b0029f048cf4727617e7a)
2007-04-26 17:13:58 +02:00
Peter Somogyi
67ae2ba4fb
fixed prev. ibwrapper_test options
...
(This used to be ctdb commit 9a810d1f3201ec559d1f4f20ef4a42d7aa7090c4)
2007-04-26 17:09:30 +02:00
Peter Somogyi
0ce857fb2f
ctdb/ib: swapped ibwrapper_tets options (-d, -a, -g)
...
(This used to be ctdb commit 4c11d4a990b792d3bc36e062c674e9573c6de821)
2007-04-26 17:06:36 +02:00
Peter Somogyi
4a106ade41
ctdb/ib: reduce debug output; allow not only ip
...
(This used to be ctdb commit 1942c21fe7b52f2b0c8f6895bdc7efd70505a9db)
2007-04-26 16:54:24 +02:00
Andrew Tridgell
124e38deab
ignore generated nodes.txt
...
(This used to be ctdb commit b921dc2c7932e0c1ece6ac3f57e117d0500f8214)
2007-04-26 15:40:14 +02:00
Andrew Tridgell
e51142c8f3
validate the vnn
...
(This used to be ctdb commit 025e58ba2b870ebb861b015d5c79dac7f5402bfb)
2007-04-26 15:38:33 +02:00
Peter Somogyi
946702979e
merged tridge's branch
...
(This used to be ctdb commit 9f76f0fc94cedc2ac775181033c2484d56ccfed0)
2007-04-26 15:35:03 +02:00
Andrew Tridgell
1b36d7bebd
fixed typo
...
(This used to be ctdb commit 9755f9c62fd14abc65189fc06629f37546f53082)
2007-04-26 15:33:17 +02:00
Andrew Tridgell
c23d1694db
merge from peter
...
(This used to be ctdb commit ddf390da2bceb5b3f431433aec424d99d98c05f4)
2007-04-26 15:28:13 +02:00
Peter Somogyi
9d521cf16a
merged tridge's branch
...
(This used to be ctdb commit 02ec7d6abb75a7c0a414efd4a50d44e6f1e5e407)
2007-04-26 15:00:24 +02:00
Andrew Tridgell
8ae14b4052
moved status to ctdb_control
...
(This used to be ctdb commit 9a543968ba0379fbf8e977e184f22f4349d6243f)
2007-04-26 14:51:41 +02:00
Peter Somogyi
206556a445
made ofed-1.0 (and 1.1) compatible + fixed warnings
...
(This used to be ctdb commit 43e4b83fc796b05baccfff6a34df398c821aa018)
2007-04-26 14:37:06 +02:00
Andrew Tridgell
d955485e7b
added a ctdb control message, and tool
...
(This used to be ctdb commit 0d7a71f35bb8ce95231f8ca1e8e3e4024fe657e5)
2007-04-26 14:27:49 +02:00
Andrew Tridgell
c1a4b3c687
merge from ronnie
...
(This used to be ctdb commit 37ef65737571a4290a150c28cf2b0a6b221253fd)
2007-04-26 11:13:49 +02:00
Andrew Tridgell
3964d36c91
add version printout
...
(This used to be ctdb commit 54aaf64cf0681329cdcdc4b7f76e1335952bb683)
2007-04-24 15:17:50 +02:00
Andrew Tridgell
0ba189d423
fit some more windows across a screen
...
(This used to be ctdb commit f787f9c966bab82065b979b0a6fcc5c056c7cee4)
2007-04-24 14:24:34 +02:00
Andrew Tridgell
3d14b79c2f
popt not needed in lockwait code
...
(This used to be ctdb commit 796fdbe8efc3d74515218ddcb25abdbec2e9c2b7)
2007-04-23 23:33:37 +02:00
Ronnie Sahlberg
dabf61075f
add pdu's that the client can use to query the ctdb daemon of the path
...
to the database it created (so the client can open and access the same
file)
(This used to be ctdb commit c2eda19499b3263b2248c41bd531fb73c7b42212)
2007-04-24 00:06:48 +10:00
Peter Somogyi
d244415d1e
fixed ctdb/ib bug at reject event
...
reverted my suggestion in debug.c (based on my false error detection)
(This used to be ctdb commit 5c52c9f37639c65b551c10d1706c49653cd99742)
2007-04-23 12:45:14 +02:00
Ronnie Sahlberg
bd62c78154
split the 32bit idr field into two.
...
store the idr as the high 16 bits and use a rotating counter for the low
16 bits.
(This used to be ctdb commit 7c763b7b5e6ca54a6df4586893ddaf1b508b4c22)
2007-04-23 18:19:50 +10:00
Ronnie Sahlberg
42971d6565
add a comment that sometimes sending remote calls straight to the
...
lmaster instead of what the nodes think is the dmaster (which might be
stale) improve performance.
(This used to be ctdb commit f535f79e6a2a6c6d07141b96e0b957fa93c684f4)
2007-04-23 17:05:09 +10:00
Andrew Tridgell
f651581460
added max_redirect_count status field
...
(This used to be ctdb commit ecea04741fe552aa409ab165d7c69ead9649986c)
2007-04-22 18:57:22 +02:00
Ronnie Sahlberg
1bb55c1f77
merge from tridge
...
(This used to be ctdb commit 3457af559a5d54fd9eb787f18ff15d7c19271f60)
2007-04-23 02:35:05 +10:00
Andrew Tridgell
9e8002dd67
fixed the reverse of the last bug - handle the case when the new dmaster is the lmaster
...
(This used to be ctdb commit b2599834d2ace7369a1b36f85fdf6eb62f047e30)
2007-04-22 18:19:49 +02:00
Andrew Tridgell
1349f0bd49
mark authoritative records
...
(This used to be ctdb commit f2076338221c5cb28f9045ce5345cc6a9b429f1a)
2007-04-22 16:53:09 +02:00
Andrew Tridgell
f9bfd8a081
debug changes
...
(This used to be ctdb commit 3ddc1e4f1d3660d33cc2a07e53b66772116e9640)
2007-04-22 16:39:55 +02:00
Ronnie Sahlberg
c7c5f2e9bc
merge from tridge
...
(This used to be ctdb commit 1c33c9856c05068a5681f3e37c9b94f429038a69)
2007-04-22 22:31:11 +10:00
Andrew Tridgell
107d91e391
- when handling a record migration in the lmaster, bypass the usual
...
dmaster request stage, and instead directly send a dmaster
reply. This avoids a race condition where a new call comes in for
the same record while processing the dmaster request
- don't keep any redirect records during a ctdb call. This prevents a
memory leak in case of a redirect storm
(This used to be ctdb commit 59889ca0fd606c7d2156839383a09dfc5a2e4853)
2007-04-22 14:26:45 +02:00
Ronnie Sahlberg
f70c7df1f0
merge from tridge
...
(This used to be ctdb commit 2644ee0e81e4f78d35528999b0a18f4253f99794)
2007-04-22 20:55:49 +10:00
Andrew Tridgell
2a08818e24
added a useful tool for dumping a ctdb
...
(This used to be ctdb commit 671ed94011e21396571a3f4a5191b9a83911c952)
2007-04-22 09:24:27 +02:00
Ronnie Sahlberg
348e953f4b
merge from tridge
...
(This used to be ctdb commit 831847ba999e504b9c75f4e7c9c09c26bbeffcba)
2007-04-22 17:03:36 +10:00
Andrew Tridgell
9398d48c54
update the vnn as well when getting the connection information
...
(This used to be ctdb commit 25f36f7edaa56a16692949d6750b65d74bf4218f)
2007-04-21 23:24:39 +02:00