vlendec/samba-autobuild/.git
17 years agodebug level controls
Andrew Tridgell [Fri, 27 Apr 2007 13:14:36 +0000 (15:14 +0200)]
debug level controls
(This used to be ctdb commit 85f883c081dd1ab069420d2e7f4f2e9d708b3cde)

17 years agonicer testing of control data size
Andrew Tridgell [Fri, 27 Apr 2007 12:49:44 +0000 (14:49 +0200)]
nicer testing of control data size
(This used to be ctdb commit 67d51cd74c8bbd20cae1da9f04f32ff887fc4f8c)

17 years agomerge from ronnie
Andrew Tridgell [Fri, 27 Apr 2007 12:45:45 +0000 (14:45 +0200)]
merge from ronnie
(This used to be ctdb commit c2ad6820f4526c230178e7d1b66b82103bfed904)

17 years agoadd a new control : SETVNNMAP to set the generation id and also the vnn
Ronnie Sahlberg [Fri, 27 Apr 2007 12:08:12 +0000 (22:08 +1000)]
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)

17 years agoadd a control to read the vnnmap configuration from a node
Ronnie Sahlberg [Fri, 27 Apr 2007 10:56:10 +0000 (20:56 +1000)]
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)

17 years agomerge from tridge
Ronnie Sahlberg [Fri, 27 Apr 2007 09:01:27 +0000 (19:01 +1000)]
merge from tridge

(This used to be ctdb commit d171b27028172754eee7c02def1c93df7aac2bb3)

17 years agomerge vnn_map code from ronnie
Andrew Tridgell [Fri, 27 Apr 2007 09:01:03 +0000 (11:01 +0200)]
merge vnn_map code from ronnie
(This used to be ctdb commit 01eed862bb007bdb7da61f0521a9a64e0c85e3a2)

17 years agoadd a mapping table from a hash value to a lmaster vnn number
Ronnie Sahlberg [Fri, 27 Apr 2007 08:43:52 +0000 (18:43 +1000)]
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)

17 years agonull terminate a string
Andrew Tridgell [Thu, 26 Apr 2007 21:29:26 +0000 (23:29 +0200)]
null terminate a string
(This used to be ctdb commit a7408802c7bff235bd917d06f98e00e309d2d5ca)

17 years agogot rid of the getdbpath call
Andrew Tridgell [Thu, 26 Apr 2007 21:10:35 +0000 (23:10 +0200)]
got rid of the getdbpath call
(This used to be ctdb commit 736ce5c00a1d1b47abb44c4b262b14bfba5202b1)

17 years agoadded a ctdb_get_config call
Andrew Tridgell [Thu, 26 Apr 2007 17:27:07 +0000 (19:27 +0200)]
added a ctdb_get_config call
added a ctdb ping control

(This used to be ctdb commit 7d17378b6e6076a922cffe98239e20dfbbae3bf7)

17 years agoremoved some bogus debug lines
Andrew Tridgell [Thu, 26 Apr 2007 16:31:13 +0000 (18:31 +0200)]
removed some bogus debug lines
(This used to be ctdb commit 25aa579058ecd2a33b13b4c1d6c7c75427bbdafa)

17 years agomerge from peter
Andrew Tridgell [Thu, 26 Apr 2007 15:13:58 +0000 (17:13 +0200)]
merge from peter
(This used to be ctdb commit e340d8d2af90d9a2819b0029f048cf4727617e7a)

17 years agofixed prev. ibwrapper_test options
Peter Somogyi [Thu, 26 Apr 2007 15:09:30 +0000 (17:09 +0200)]
fixed prev. ibwrapper_test options

(This used to be ctdb commit 9a810d1f3201ec559d1f4f20ef4a42d7aa7090c4)

17 years agoctdb/ib: swapped ibwrapper_tets options (-d, -a, -g)
Peter Somogyi [Thu, 26 Apr 2007 15:06:36 +0000 (17:06 +0200)]
ctdb/ib: swapped ibwrapper_tets options (-d, -a, -g)

(This used to be ctdb commit 4c11d4a990b792d3bc36e062c674e9573c6de821)

17 years agoctdb/ib: reduce debug output; allow not only ip
Peter Somogyi [Thu, 26 Apr 2007 14:54:24 +0000 (16:54 +0200)]
ctdb/ib: reduce debug output; allow not only ip

(This used to be ctdb commit 1942c21fe7b52f2b0c8f6895bdc7efd70505a9db)

17 years agoignore generated nodes.txt
Andrew Tridgell [Thu, 26 Apr 2007 13:40:14 +0000 (15:40 +0200)]
ignore generated nodes.txt
(This used to be ctdb commit b921dc2c7932e0c1ece6ac3f57e117d0500f8214)

17 years agovalidate the vnn
Andrew Tridgell [Thu, 26 Apr 2007 13:38:33 +0000 (15:38 +0200)]
validate the vnn
(This used to be ctdb commit 025e58ba2b870ebb861b015d5c79dac7f5402bfb)

17 years agomerged tridge's branch
Peter Somogyi [Thu, 26 Apr 2007 13:35:03 +0000 (15:35 +0200)]
merged tridge's branch

(This used to be ctdb commit 9f76f0fc94cedc2ac775181033c2484d56ccfed0)

17 years agofixed typo
Andrew Tridgell [Thu, 26 Apr 2007 13:33:17 +0000 (15:33 +0200)]
fixed typo
(This used to be ctdb commit 9755f9c62fd14abc65189fc06629f37546f53082)

17 years agomerge from peter
Andrew Tridgell [Thu, 26 Apr 2007 13:28:13 +0000 (15:28 +0200)]
merge from peter
(This used to be ctdb commit ddf390da2bceb5b3f431433aec424d99d98c05f4)

17 years agomerged tridge's branch
Peter Somogyi [Thu, 26 Apr 2007 13:00:24 +0000 (15:00 +0200)]
merged tridge's branch

(This used to be ctdb commit 02ec7d6abb75a7c0a414efd4a50d44e6f1e5e407)

17 years agomoved status to ctdb_control
Andrew Tridgell [Thu, 26 Apr 2007 12:51:41 +0000 (14:51 +0200)]
moved status to ctdb_control
(This used to be ctdb commit 9a543968ba0379fbf8e977e184f22f4349d6243f)

17 years agomade ofed-1.0 (and 1.1) compatible + fixed warnings
Peter Somogyi [Thu, 26 Apr 2007 12:37:06 +0000 (14:37 +0200)]
made ofed-1.0 (and 1.1) compatible + fixed warnings

(This used to be ctdb commit 43e4b83fc796b05baccfff6a34df398c821aa018)

17 years agoadded a ctdb control message, and tool
Andrew Tridgell [Thu, 26 Apr 2007 12:27:49 +0000 (14:27 +0200)]
added a ctdb control message, and tool
(This used to be ctdb commit 0d7a71f35bb8ce95231f8ca1e8e3e4024fe657e5)

17 years agomerge from ronnie
Andrew Tridgell [Thu, 26 Apr 2007 09:13:49 +0000 (11:13 +0200)]
merge from ronnie
(This used to be ctdb commit 37ef65737571a4290a150c28cf2b0a6b221253fd)

17 years agoadd version printout
Andrew Tridgell [Tue, 24 Apr 2007 13:17:50 +0000 (15:17 +0200)]
add version printout
(This used to be ctdb commit 54aaf64cf0681329cdcdc4b7f76e1335952bb683)

17 years agofit some more windows across a screen
Andrew Tridgell [Tue, 24 Apr 2007 12:24:34 +0000 (14:24 +0200)]
fit some more windows across a screen
(This used to be ctdb commit f787f9c966bab82065b979b0a6fcc5c056c7cee4)

17 years agopopt not needed in lockwait code
Andrew Tridgell [Mon, 23 Apr 2007 21:33:37 +0000 (23:33 +0200)]
popt not needed in lockwait code
(This used to be ctdb commit 796fdbe8efc3d74515218ddcb25abdbec2e9c2b7)

17 years agoadd pdu's that the client can use to query the ctdb daemon of the path
Ronnie Sahlberg [Mon, 23 Apr 2007 14:06:48 +0000 (00:06 +1000)]
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)

17 years agofixed ctdb/ib bug at reject event
Peter Somogyi [Mon, 23 Apr 2007 10:45:14 +0000 (12:45 +0200)]
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)

17 years agosplit the 32bit idr field into two.
Ronnie Sahlberg [Mon, 23 Apr 2007 08:19:50 +0000 (18:19 +1000)]
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)

17 years agoadd a comment that sometimes sending remote calls straight to the
Ronnie Sahlberg [Mon, 23 Apr 2007 07:05:09 +0000 (17:05 +1000)]
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)

17 years agoadded max_redirect_count status field
Andrew Tridgell [Sun, 22 Apr 2007 16:57:22 +0000 (18:57 +0200)]
added max_redirect_count status field
(This used to be ctdb commit ecea04741fe552aa409ab165d7c69ead9649986c)

17 years agomerge from tridge
Ronnie Sahlberg [Sun, 22 Apr 2007 16:35:05 +0000 (02:35 +1000)]
merge from tridge

(This used to be ctdb commit 3457af559a5d54fd9eb787f18ff15d7c19271f60)

17 years agofixed the reverse of the last bug - handle the case when the new dmaster is the lmaster
Andrew Tridgell [Sun, 22 Apr 2007 16:19:49 +0000 (18:19 +0200)]
fixed the reverse of the last bug - handle the case when the new dmaster is the lmaster
(This used to be ctdb commit b2599834d2ace7369a1b36f85fdf6eb62f047e30)

17 years agomark authoritative records
Andrew Tridgell [Sun, 22 Apr 2007 14:53:09 +0000 (16:53 +0200)]
mark authoritative records
(This used to be ctdb commit f2076338221c5cb28f9045ce5345cc6a9b429f1a)

17 years agodebug changes
Andrew Tridgell [Sun, 22 Apr 2007 14:39:55 +0000 (16:39 +0200)]
debug changes
(This used to be ctdb commit 3ddc1e4f1d3660d33cc2a07e53b66772116e9640)

17 years agomerge from tridge
Ronnie Sahlberg [Sun, 22 Apr 2007 12:31:11 +0000 (22:31 +1000)]
merge from tridge

(This used to be ctdb commit 1c33c9856c05068a5681f3e37c9b94f429038a69)

17 years ago- when handling a record migration in the lmaster, bypass the usual
Andrew Tridgell [Sun, 22 Apr 2007 12:26:45 +0000 (14:26 +0200)]
- 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)

17 years agomerge from tridge
Ronnie Sahlberg [Sun, 22 Apr 2007 10:55:49 +0000 (20:55 +1000)]
merge from tridge

(This used to be ctdb commit 2644ee0e81e4f78d35528999b0a18f4253f99794)

17 years agoadded a useful tool for dumping a ctdb
Andrew Tridgell [Sun, 22 Apr 2007 07:24:27 +0000 (09:24 +0200)]
added a useful tool for dumping a ctdb
(This used to be ctdb commit 671ed94011e21396571a3f4a5191b9a83911c952)

17 years agomerge from tridge
Ronnie Sahlberg [Sun, 22 Apr 2007 07:03:36 +0000 (17:03 +1000)]
merge from tridge

(This used to be ctdb commit 831847ba999e504b9c75f4e7c9c09c26bbeffcba)

17 years agoupdate the vnn as well when getting the connection information
Andrew Tridgell [Sat, 21 Apr 2007 21:24:39 +0000 (23:24 +0200)]
update the vnn as well when getting the connection information
(This used to be ctdb commit 25f36f7edaa56a16692949d6750b65d74bf4218f)

17 years agomerge from samba4
Andrew Tridgell [Sat, 21 Apr 2007 08:09:37 +0000 (10:09 +0200)]
merge from samba4
(This used to be ctdb commit a64c6ace26559b2793f2a804430fb0fc53f03a34)

17 years agomerge from tridges tree
Ronnie Sahlberg [Sat, 21 Apr 2007 07:57:50 +0000 (17:57 +1000)]
merge from tridges tree

(This used to be ctdb commit d3fdb22eec5fd21132e2a9ab19ebbb21217ccec9)

17 years ago- prevent sending dmaster requests to ourselves
Andrew Tridgell [Sat, 21 Apr 2007 07:22:46 +0000 (09:22 +0200)]
- prevent sending dmaster requests to ourselves

- add some debug code

(This used to be ctdb commit 26ad1ec3a3b872520a735e4fe4f224f716643731)

17 years agomerge fixes from samba4
Andrew Tridgell [Sat, 21 Apr 2007 03:08:22 +0000 (13:08 +1000)]
merge fixes from samba4
(This used to be ctdb commit 23d892c2696c5c1dd9f12f1ccd1acfa264be4fb6)

17 years agomerge tdb updates from samba4
Andrew Tridgell [Sat, 21 Apr 2007 03:07:49 +0000 (13:07 +1000)]
merge tdb updates from samba4
(This used to be ctdb commit c9959e5741a17fd52070b744714eb00bf92a93eb)

17 years agouse talloc_vasprintf
Peter Somogyi [Fri, 20 Apr 2007 15:04:00 +0000 (17:04 +0200)]
use talloc_vasprintf

(This used to be ctdb commit e259620d416497fba5ac43a87f3be7b280c21409)

17 years agoremoving my dirt from tridge's code
Peter Somogyi [Fri, 20 Apr 2007 14:22:57 +0000 (16:22 +0200)]
removing my dirt from tridge's code
(this change wasn't necessary)

(This used to be ctdb commit 217d996abdafe91c2f51d9d486d95a6607b56285)

17 years agomerged tridge's branch
Peter Somogyi [Fri, 20 Apr 2007 12:50:10 +0000 (14:50 +0200)]
merged tridge's branch

(This used to be ctdb commit b40d044fc5b057b707a6f5637313c0836981a66e)

17 years agoSimplified code in ctdb_init_transport.
Peter Somogyi [Fri, 20 Apr 2007 12:47:52 +0000 (14:47 +0200)]
Simplified code in ctdb_init_transport.

(This used to be ctdb commit 9a30e0fcbdde587cb1f3d854b8f1d22da19d9af4)

17 years ago- ctdb/ib minor bugfixes (error case)
Peter Somogyi [Fri, 20 Apr 2007 12:26:19 +0000 (14:26 +0200)]
- ctdb/ib minor bugfixes (error case)
- make ctdb capable of alternative connection (like ib) again, solved the fork problem
- do_debug memory overwrite bugfix (occured using ibwrapper_test with wrong address given)

(This used to be ctdb commit da0b84cda26d544f63841dfd770ed7ebad401944)

17 years ago- expanded status to include count of each call type
Andrew Tridgell [Fri, 20 Apr 2007 11:02:53 +0000 (21:02 +1000)]
- expanded status to include count of each call type
- added lockwait latency

(This used to be ctdb commit 0b5d196147e644cf8b172cb4b593fd46b1caa386)

17 years agoadded ctdb_status tool
Andrew Tridgell [Fri, 20 Apr 2007 10:07:47 +0000 (20:07 +1000)]
added ctdb_status tool
(This used to be ctdb commit 908d6c6a936e21f70f05827ce302e966cca0132a)

17 years ago- fixed a problem with packets to ourselves. The packets were being
Andrew Tridgell [Fri, 20 Apr 2007 07:58:37 +0000 (17:58 +1000)]
- fixed a problem with packets to ourselves. The packets were being
  processed immediately, but the input routines indirectly assumed
  they were being called as a new event (for example, a calling
  routine might queue the packet, then afterwards modify the ltdb
  record). The solution was to make self packets queue via a zero
  timeout.

- fixed unlinking of the socket in a exit in the lockwait code. Needed
  an _exit instead of exit so atexit() doesn't trigger

- print latency of lockwait delays

(This used to be ctdb commit 1b0684b4f6a976f4c5fe54394ac54d121810b298)

17 years agomerged fix from volker (thanks!)
Andrew Tridgell [Thu, 19 Apr 2007 21:50:34 +0000 (07:50 +1000)]
merged fix from volker (thanks!)
(This used to be ctdb commit 5f51864f837de5fd262d6a41722605789494cb66)

17 years agominor debug changes
Andrew Tridgell [Thu, 19 Apr 2007 21:47:37 +0000 (07:47 +1000)]
minor debug changes
(This used to be ctdb commit 1950d96458238782c3bfd8e41a053c4be8330ef9)

17 years agomerge from tridge
Ronnie Sahlberg [Thu, 19 Apr 2007 21:19:07 +0000 (07:19 +1000)]
merge from tridge

(This used to be ctdb commit 819cdf314900388fe36368a21e2c4895b78b9203)

17 years agoThe remote node needs to get the IMMEDIATE_MIGRATION flag to actually send the
Volker Lendecke [Thu, 19 Apr 2007 15:44:45 +0000 (17:44 +0200)]
The remote node needs to get the IMMEDIATE_MIGRATION flag to actually send the
record

(This used to be ctdb commit 9159434b1eef39b7de58b30626039f1e45a97306)

17 years agoMerged tridge's ctdb branch.
Peter Somogyi [Thu, 19 Apr 2007 13:52:08 +0000 (15:52 +0200)]
Merged tridge's ctdb branch.

(This used to be ctdb commit d9046da5219144afe68f5a376243d998e7068ccd)

17 years agofixed a bug found by volker - initialse the record on disk when initialised in memory
Andrew Tridgell [Thu, 19 Apr 2007 08:31:49 +0000 (18:31 +1000)]
fixed a bug found by volker - initialse the record on disk when initialised in memory
(This used to be ctdb commit f7903b00cdc91ae7d7e38b1a38d2b7b663e3a728)

17 years ago- split out ctdb_ltdb_lock_fetch_requeue() into a simpler
Andrew Tridgell [Thu, 19 Apr 2007 07:43:27 +0000 (17:43 +1000)]
- split out ctdb_ltdb_lock_fetch_requeue() into a simpler
  ctdb_ltdb_lock_requeue() and a small wrapper

- use ctdb_ltdb_lock_requeue() to fix a possible hang in
  ctdb_reply_dmaster(), where the ctdb_ltdb_store() could hang waiting
  for a client. We now requeue the reply_dmaster packet until we have
  the lock

(This used to be ctdb commit 97cd7aa09ce3abbb5e3e965c5c81668e0c0133a5)

17 years ago- added a --torture option to all ctdb tools. This sets
Andrew Tridgell [Thu, 19 Apr 2007 06:27:56 +0000 (16:27 +1000)]
- added a --torture option to all ctdb tools. This sets
  CTDB_FLAG_TORTURE, which forces some race conditions to be much more
  likely. For example a 20% chance of not getting the lock on the
  first try in the daemon

- abstraced the ctdb_ltdb_lock_fetch_requeue() code to allow it to
  work with both inter-node packets and client->daemon packets

- fixed a bug left over in ctdb_call from when the client updated the
  header on a call reply

- removed CTDB_FLAG_CONNECT_WAIT flag (not needed any more)

(This used to be ctdb commit 7559dcd184666c3853127e3c8f5baef4fea327c4)

17 years agomerge from ronnie
Andrew Tridgell [Thu, 19 Apr 2007 02:54:51 +0000 (12:54 +1000)]
merge from ronnie
(This used to be ctdb commit 257af5c31a311217315e07d6a194c3f96c8dfa80)

17 years ago the checks for srcnode and destnode from the client are redundant since the daemon...
Ronnie sahlberg [Thu, 19 Apr 2007 02:48:19 +0000 (12:48 +1000)]
 the checks for srcnode and destnode from the client are redundant since the daemon will sort these out itself before it sends the call of to either the local handler or a remote daemon

(This used to be ctdb commit 9175d49ba1ce2af99907fa227b50d281f85c98ae)

17 years agomerge from ronnie
Andrew Tridgell [Thu, 19 Apr 2007 02:43:19 +0000 (12:43 +1000)]
merge from ronnie
remove unused bench_incr function in ctdb_bench.c

(This used to be ctdb commit 39424cb13070c9964121b533a9f9ba448ce49d16)

17 years agoremove a comment that is no longer valid
Ronnie sahlberg [Thu, 19 Apr 2007 02:34:39 +0000 (12:34 +1000)]
remove a comment that is no longer valid

(This used to be ctdb commit e834cf18cfc18c9462f0dfff0315b5b6798771f8)

17 years agodon't need these structures any more
Andrew Tridgell [Thu, 19 Apr 2007 02:34:24 +0000 (12:34 +1000)]
don't need these structures any more
(This used to be ctdb commit 506117dc24ec647c629c92a3996455cd8d9c8ec6)

17 years agoadd some tests in the daemon that a REQ_CALL that a client sent us has valid srcnode...
Ronnie sahlberg [Thu, 19 Apr 2007 02:33:13 +0000 (12:33 +1000)]
add some tests in the daemon that a REQ_CALL that a client sent us has valid srcnode and destnode

update ctdbd_test.c to show how to force a migration onto the local node

(This used to be ctdb commit fe313cee4927075be311e28ea106bd5cc035f217)

17 years agomerge from tridge
Ronnie sahlberg [Thu, 19 Apr 2007 02:00:29 +0000 (12:00 +1000)]
merge from tridge

(This used to be ctdb commit 45081eadb89fdaf8c831e161ae7df816beda934b)

17 years agomerge from tridge
Ronnie sahlberg [Thu, 19 Apr 2007 01:58:34 +0000 (11:58 +1000)]
merge from tridge

(This used to be ctdb commit e9561cfe190af8c0594de7531fbf087730aae60c)

17 years agomuch simpler fetch code!
Andrew Tridgell [Thu, 19 Apr 2007 01:56:37 +0000 (11:56 +1000)]
much simpler fetch code!
fetch is now confined to the client code, no spcial code at
all in the daemon.

(This used to be ctdb commit 3ec801c9717e250b902760862df188e03c9bdbf4)

17 years ago- fully separate the client version of ctdb_call from the daemon
Andrew Tridgell [Thu, 19 Apr 2007 01:28:01 +0000 (11:28 +1000)]
- fully separate the client version of ctdb_call from the daemon
  version. The client version is different enough that this is
  worthwhile

- enable local shortcut for client version of ctdb_call

- add idr_find_type(), with better error reporting in case of type
  mismatch

(This used to be ctdb commit 2388094c5f7b6ce003e86b05620c06217d63b49c)

17 years ago- make he packet allocation routines take a mem_ctx, which allows
Andrew Tridgell [Thu, 19 Apr 2007 00:37:44 +0000 (10:37 +1000)]
- make he packet allocation routines take a mem_ctx, which allows
  us to put memory directly in the right context, avoiding quite a few
  talloc_steal calls, and simplifying the code

- make the fetch lock code in the daemon fully async

(This used to be ctdb commit d98b4b4fcadad614861c0d44a3854d97b01d0f74)

17 years agoctdbd does no longer take a --daemon parameter since we no longer do non-daemon mode
Ronnie sahlberg [Thu, 19 Apr 2007 00:24:11 +0000 (10:24 +1000)]
ctdbd does no longer take a --daemon parameter since we no longer do non-daemon mode
remove the parameter from the ctdbd script

remove the store_unlock from ctdbd_test since there is no and will be no pdu for this
CTDB_REPLY_FETCH_LOCK no longer return the data for the record since the client is assumed to read this itself from the local tdb. remove some variables that no longer exists.

(This used to be ctdb commit 77c43479e1932b27387fc2f85a3cb6538633b481)

17 years agomerge from tridge
Ronnie sahlberg [Thu, 19 Apr 2007 00:07:07 +0000 (10:07 +1000)]
merge from tridge

(This used to be ctdb commit 414952b2dd48de4a9edb532ba9c2cb6e22bb6d7f)

17 years agoavoid a deadlock the fetch_lock code. The deadlock could happen when
Andrew Tridgell [Thu, 19 Apr 2007 00:03:20 +0000 (10:03 +1000)]
avoid a deadlock the fetch_lock code. The deadlock could happen when
a client held the chainlock, and the daemon received a dmaster reply
at the same time. The daemon would not be able to process the dmaster
reply, due to the lock, but the fetch lock cannot make progres until
the dmaster reply is processed.

The solution is to not hold the lock in the client while talking to
the daemon. The client has to retry the lock after the record has
migrated. This means that forward progress is not guaranteed. We'll
have to see if that matters in practice.

(This used to be ctdb commit 737e5a1253cb048222c595a474aff71c99fc554f)

17 years ago- use separate directories for the tdb files by default
Andrew Tridgell [Wed, 18 Apr 2007 23:58:23 +0000 (09:58 +1000)]
- use separate directories for the tdb files by default
- use TDB_CLEAR_IF_FIRST to ensure we don't use an old tdb
(This used to be ctdb commit ac47d7b4eb79597da1358da21f10e634cdc9dd2e)

17 years agomerged the db_dir changes from volker. Changed them slightly,
Andrew Tridgell [Wed, 18 Apr 2007 23:14:25 +0000 (09:14 +1000)]
merged the db_dir changes from volker. Changed them slightly,
to make the --dbdir option available to all ctdb tools, not just
the daemon

(This used to be ctdb commit add63b0ae11d8727163bb6f0c94a617d9b88ef28)

17 years agomerge from tridge
Ronnie sahlberg [Wed, 18 Apr 2007 22:18:38 +0000 (08:18 +1000)]
merge from tridge

(This used to be ctdb commit a8d7f1af3751276599086735660fec0659d57b1c)

17 years agoAdd --dbdir to ctdbd. Necessary for shared operation between ctdbd and smbd.
Volker Lendecke [Wed, 18 Apr 2007 14:36:22 +0000 (16:36 +0200)]
Add --dbdir to ctdbd. Necessary for shared operation between ctdbd and smbd.
(This used to be ctdb commit bce40105e2ccbca5e364793bbf1a6357e6dd69b2)

17 years agothis fixes a timeout error spotted by volker
Andrew Tridgell [Wed, 18 Apr 2007 09:12:29 +0000 (19:12 +1000)]
this fixes a timeout error spotted by volker
It ensures that when the client context goes away (such as when the client exits)
that any timed events and partially completed requests from that client also go away
(This used to be ctdb commit 45a45a0a44d4da9b45719aac72b0ae4bd4c74462)

17 years agomerged cleanup from ronnie
Andrew Tridgell [Wed, 18 Apr 2007 08:43:34 +0000 (18:43 +1000)]
merged cleanup from ronnie
(This used to be ctdb commit 26037a7b3557faa1c10944f654b1465877c6b840)

17 years agovalidate dmaster on a client fetch request
Andrew Tridgell [Wed, 18 Apr 2007 08:39:02 +0000 (18:39 +1000)]
validate dmaster on a client fetch request
(This used to be ctdb commit b49069aac0c14e5a02be843247930c197d620a81)

17 years agowe dont need the structure ctdb_reply_shutdown since we dont implement that pdu any...
Ronnie sahlberg [Wed, 18 Apr 2007 07:04:26 +0000 (17:04 +1000)]
we dont need the structure ctdb_reply_shutdown since we dont implement that pdu any more

(This used to be ctdb commit 5bac32b3daf3c61214269cd09cfc1b6c3f8c3d6e)

17 years agomerge from tridge
Ronnie sahlberg [Wed, 18 Apr 2007 07:03:10 +0000 (17:03 +1000)]
merge from tridge

(This used to be ctdb commit c8598a3a727049517ee7a923b0ae30b039b9080b)

17 years agosimpler shutdown process. The reply is not actually needed, and
Andrew Tridgell [Wed, 18 Apr 2007 05:35:41 +0000 (15:35 +1000)]
simpler shutdown process. The reply is not actually needed, and
occasionally leads to problems if an immediate send on the socket
causes a context switch and the client exiting before the daemon. We
now exit the client when the daemon goes away.

(This used to be ctdb commit b7bed0088e700f25105ceea63640b38804f51e4d)

17 years agouse shutdown in more tests
Andrew Tridgell [Wed, 18 Apr 2007 05:27:38 +0000 (15:27 +1000)]
use shutdown in more tests
(This used to be ctdb commit 150153947b959f90991fdae8d7c85ef8d551dff5)

17 years agomake sure we don't double free in the async lock handler
Andrew Tridgell [Wed, 18 Apr 2007 05:27:26 +0000 (15:27 +1000)]
make sure we don't double free in the async lock handler
(This used to be ctdb commit 67d3e64f82fd71ff1e32bf377d0cf1f636b9602f)

17 years agomerge from tridge
Ronnie sahlberg [Wed, 18 Apr 2007 04:45:08 +0000 (14:45 +1000)]
merge from tridge

(This used to be ctdb commit 4a6cb8a5c411457459eaadddd03ef64924505cd8)

17 years ago- merge from ronnie, and use wait instead of sleep in test scripts
Andrew Tridgell [Wed, 18 Apr 2007 04:42:02 +0000 (14:42 +1000)]
- merge from ronnie, and use wait instead of sleep in test scripts
(This used to be ctdb commit 6e6812641e3ce7afae7bd46ed317a885839fdd4f)

17 years agoadd/finish the ctdb_shutdown() function.
Ronnie sahlberg [Wed, 18 Apr 2007 04:08:45 +0000 (14:08 +1000)]
add/finish the ctdb_shutdown() function.
this function can be used in test applications to perform an orderly shutdown of the ctdb cluster once the test has completed.
the ctdb nodes will remain operational until all of them have received a shutdown from their client(s)  after which the ctdb daemons will all terminate.

this eliminates the need to using sleep() in some of the test applications

(This used to be ctdb commit f35db69dc190b11659aad85495bb66308fdb5599)

17 years agomerge fetch1 changes from ronnie
Andrew Tridgell [Wed, 18 Apr 2007 02:39:12 +0000 (12:39 +1000)]
merge fetch1 changes from ronnie
(This used to be ctdb commit 906419acf121ea93661f91bde65cdcd890f70e63)

17 years agoinitial shutdown function where a client can request an orderly shutdown of a ctdb...
Ronnie sahlberg [Wed, 18 Apr 2007 02:39:03 +0000 (12:39 +1000)]
initial shutdown function where a client can request an orderly shutdown of a ctdb cluster

(This used to be ctdb commit 00d2748bd4e7209ff7e253f6652fdd9bf16cf147)

17 years agostarted adding a cleaner daemon finish method
Andrew Tridgell [Wed, 18 Apr 2007 01:55:54 +0000 (11:55 +1000)]
started adding a cleaner daemon finish method
(This used to be ctdb commit 5ef0cd83d7f24616dad85cece485b770376ecd45)

17 years agomerge from tridge
Ronnie sahlberg [Wed, 18 Apr 2007 01:33:19 +0000 (11:33 +1000)]
merge from tridge

(This used to be ctdb commit e83db4d76ea498413ba4314e937d0ff298bd4cb6)

17 years agobit less verbose when client exits
Andrew Tridgell [Wed, 18 Apr 2007 01:33:16 +0000 (11:33 +1000)]
bit less verbose when client exits
(This used to be ctdb commit a6477577beba71bd9185b968de43b763378f234b)

17 years ago- merge volkers debug changes
Andrew Tridgell [Wed, 18 Apr 2007 01:20:24 +0000 (11:20 +1000)]
- merge volkers debug changes

- fixed memory leaks in the 3 packet receive routines. The problem was
  that the ctdb_call logic would occasionally complete and free a
  incoming packet, which would then be freed again in the packet
  receive routine. The solution is to make the packet a child of a
  temporary context in the receive routine then free that temporary
  context. That allows other routines to keep or free the packet if
  they want to, while allowing us to safely free it (via a free of the
  temporary context) in the receive function

(This used to be ctdb commit 304aaaa7235febbe97ff9ecb43875b7265ac48cd)