Ronnie sahlberg
7821b985a5
merge from tridge
...
(This used to be ctdb commit a027d468f39fdd95a4bd03e26da90eb229b2a645)
2007-04-11 11:08:20 +10:00
Andrew Tridgell
2daf1d3006
forgot to add ctdb_client.c
...
(This used to be ctdb commit 136f912562ef00ede5589a7aa080503538d14bc3)
2007-04-11 11:02:26 +10:00
Andrew Tridgell
110fe0c5a5
- add --daemon flag to ctdb_fetch test code
...
- split client specific routines out of ctdb_daemon.c
- use ctdb_queue code in message send from client to daemon
- use clearer names in client/daemon functions
- use talloc autofree context to avoid global for unlink of socket on
exit
- start on API change for message handler, to allow ctdb messaging to
handle daemon mode with multiple clients
(This used to be ctdb commit 53555db45f3583ae4a32cc3aa9e07fb8ef2a77e3)
2007-04-11 11:01:42 +10:00
Ronnie sahlberg
2a0d8c9f0d
rename client.id to client.messenger_id to make the purpose of the field more obvious
...
(This used to be ctdb commit 350f14909d5dba6cd9d76d221e263933926cea6c)
2007-04-10 21:14:55 +10:00
Ronnie sahlberg
5cf568c3ca
add a call to register the pid for a messengin service
...
store this pid inside the client structure in the ctdb daemon
(This used to be ctdb commit d4499c5e0403b0348fa36b259164b1cbfcd671b8)
2007-04-10 21:05:29 +10:00
Andrew Tridgell
902967249c
fix the queueing for partially connected tcp sockets
...
(This used to be ctdb commit 55f1c2442a53a547302669a4fdd0f1c1deeed930)
2007-04-10 20:48:31 +10:00
Ronnie sahlberg
ff0c408195
updates from tridges tree
...
(This used to be ctdb commit f291e1e652578c8c80b95fbc3d6a138ce7a7199e)
2007-04-10 20:25:11 +10:00
Andrew Tridgell
5861917468
make some functions static, and remove an unused structure
...
(This used to be ctdb commit 8d09cac96b2c604a68e4903346cc9db3a66d80da)
2007-04-10 19:40:29 +10:00
Andrew Tridgell
82e4ccbf3e
merge from ronnie
...
(This used to be ctdb commit 886a3e9122168ececc257aa1bef2f5de2f2d8d7e)
2007-04-10 19:35:21 +10:00
Andrew Tridgell
f1e0174e83
made all sockets handle partial IO
...
abstract IO via ctdb_queue_*() functions
(This used to be ctdb commit 636ae76f4632b29231db87be32c9114f58b37840)
2007-04-10 19:33:21 +10:00
Ronnie sahlberg
9ba0f9db6f
remove old ifdef that remained from when this was a header file
...
(This used to be ctdb commit 050f302103b32ea3895fc97dae7726f11fbf01e3)
2007-04-10 14:53:23 +10:00
Andrew Tridgell
82b712d80f
merge tcp changes from ronnie
...
(This used to be ctdb commit 18d6e58b92f59f18cd7772cdbc1b8812a8609ab4)
2007-04-10 14:48:13 +10:00
Andrew Tridgell
4f0ea10fb3
added daemon mode to ctdb_bench
...
(This used to be ctdb commit b1e71018866752d32f59170fd5c8ba01b05694d9)
2007-04-10 14:46:32 +10:00
Ronnie sahlberg
f2e2d1c2f3
change the tcp code to call ctdb_read_pdu() instead of doing the partial read thing explicitely
...
(This used to be ctdb commit 6156bec0187df27578afd5afa3fcaadb1a202030)
2007-04-10 13:17:15 +10:00
Andrew Tridgell
e5fc2d4062
merge from ronnie
...
(This used to be ctdb commit fb06332c246e9f8b98a6391b4eda183e2f03333f)
2007-04-10 13:06:47 +10:00
Andrew Tridgell
9958ded5eb
fix a possible free after use
...
(This used to be ctdb commit 55bc7ee10b9e9df32792b6b5779f094eb513069e)
2007-04-10 13:05:23 +10:00
Andrew Tridgell
9f7ae0f891
fix configure for new test location
...
(This used to be ctdb commit e516ea4714ae0b84ae6073201fbe297dd49b8c51)
2007-04-10 12:51:54 +10:00
Ronnie sahlberg
91c39b4852
move the checking of the CONNECT_WAIT flag into the start method for tcp
...
(This used to be ctdb commit 44f3e4456d931af642192e034f84c961ab1fdcf0)
2007-04-10 12:39:25 +10:00
Ronnie sahlberg
1f3f0ae56d
restore the test script that was updated by mistake in the previous checkin
...
(This used to be ctdb commit 5e2e6a5ce439762876f2aa054fdd0d4bb54c403c)
2007-04-10 12:23:10 +10:00
Ronnie sahlberg
b84ade51db
add a CONNECT_WAIT flag to replace the call ctdb_connect_wait() since
...
we can no longer use this function from the application if we are in daemon mode.
add a horrible "sleep()" to ctdb_test.c to prevent the daemon from dissapearing (parent process died) when the application exits which may happen before the other nodes in the test have finished talking to our daemon
(This used to be ctdb commit 74d35dafe06d71e755f3a58cc58d4b9b56fc821b)
2007-04-10 12:18:58 +10:00
Ronnie sahlberg
31ffe0af35
add a atexit() call to remove the domain socket when the daemon exits
...
(This used to be ctdb commit 2f685c68e0b17ed8a290a265ebd64c1d089ceec5)
2007-04-10 08:47:39 +10:00
Ronnie sahlberg
c7e54e1437
change ctdb_client_read() to use the ctdb_read_pdu() helper
...
(This used to be ctdb commit d476aa8533b394af6aced9c80fffaf0eefae1dd0)
2007-04-10 08:38:29 +10:00
Ronnie sahlberg
190b97f0ed
make normal/deamon mode controllable by a ctdb flag so that the api looks the same in both modes to a client.
...
send the correct structure back to a client
assorted other cleanups
(tests/test1.sh now works in daemon mode)
(This used to be ctdb commit f4593754cab750dfdb9384884502e2e1b8fde1f0)
2007-04-10 06:03:39 +10:00
Ronnie sahlberg
b384019536
dispatcher daemon first try.
...
does not yet work
(This used to be ctdb commit ff428808c6546d6f2804a1ac1cf414d1bb9cdcb4)
2007-04-09 11:51:27 +10:00
Ronnie sahlberg
b3ca4826f4
merge from tridge
...
(This used to be ctdb commit d7764dec0e9d17290ae310898c147bebe48a0f5c)
2007-04-08 12:11:48 +10:00
Andrew Tridgell
76c666fe52
another memory leak
...
(This used to be ctdb commit 10466fe11da71c93fa764bea2b3e1e741c113f9c)
2007-04-07 10:58:14 +10:00
Andrew Tridgell
3e198a567b
remove talloc debug code
...
(This used to be ctdb commit d883c1bbd4d3691a0787d37c226051f4fce4d45d)
2007-04-07 10:46:47 +10:00
Andrew Tridgell
01c4a086e7
fixed a bunch of memory leaks
...
(This used to be ctdb commit 2ba2522f2def3032c89c7973915610a245842b07)
2007-04-07 10:45:00 +10:00
Andrew Tridgell
7074b3c94c
put test code in tests/ directory
...
(This used to be ctdb commit 6dbb36f27dd0f8ac00c7a010108d4fba15753479)
2007-04-07 10:01:09 +10:00
Andrew Tridgell
eb73358691
added a magic header for wireshark and packet version info
...
(This used to be ctdb commit 8366c212bde710dd46c8c1d9d4301f6c3738e300)
2007-04-06 14:41:05 +10:00
Andrew Tridgell
16e7d716d1
merge from ronnie
...
(This used to be ctdb commit 079b88102a4c9fc56d12a6c6f74366412731bced)
2007-04-06 09:46:45 +10:00
Ronnie sahlberg
a25554be50
When we create a tcp connection to a remote ctdb node do an explicit bind() to set our source side to the same ip address as we use to listen to ctdb traffic.
...
We need this since there is no guarantee that INADDR_ANY (which would be defaulted to if we dont bind) would be routable from the remote host.
This is entirely possible to happen since CTDB traffic is likely to be isolated to a private non-routable network.
(This used to be ctdb commit e0743d2f84ca0088734c912e210deb93a6b78860)
2007-04-06 09:08:41 +10:00
Andrew Tridgell
9c4ce7f709
merge from ronnies branch
...
(This used to be ctdb commit 713dc36e85c762fedcd8be3b4b25b7a4fb780f10)
2007-04-05 13:19:06 +10:00
Andrew Tridgell
230c97b04d
merge fetch code from ronnie, and add a simple fetch test
...
(This used to be ctdb commit 83b794befd8d34b3da544a483f9d39a3fa140655)
2007-04-05 13:18:31 +10:00
Ronnie sahlberg
4d189e2437
first test of forced migration of records. compiles but not tested.
...
(This used to be ctdb commit ac6ac290e79446f52caf31f429b4c38668c27eda)
2007-04-04 21:15:56 +10:00
Ronnie sahlberg
a75666366b
tridge
...
(This used to be ctdb commit bea51470acb3fc4de0af7b34520990f295cbaac3)
2007-04-04 15:05:35 +10:00
Andrew Tridgell
b686f9d289
merge back some changes from Samba4
...
(This used to be ctdb commit b946ff61c0e4b3269d3c7e01093d0a6d5215d6ee)
2007-04-04 15:02:49 +10:00
Andrew Tridgell
a58484f51a
merge multi-database support from ronnie
...
(This used to be ctdb commit f8fbc2d07d68c60a6b56389ba041f85195d2c25e)
2007-04-03 20:13:50 +10:00
Ronnie sahlberg
8ccef4cb75
Split CTDB into sub contexts to handle multiple concurrent databases within the same context.
...
(This used to be ctdb commit d995103143f6f13f59118549d93ab4b29c27ec89)
2007-04-03 19:41:00 +10:00
Andrew Tridgell
2b276d0812
merged changes from peter
...
(This used to be ctdb commit da81d849be32427b0e13fc8b45e01c5015a35b29)
2007-03-08 11:27:15 +11:00
Peter Somogyi
1714c1ed0c
ib: added external send queue to workaround downtime
...
Workaround is because I couldn't find a correct way in ib to reconnect cleanly (with queue kept) when destination is unreachable.
When connection is broken, all internal queue contents are being destroyed and reconnects automatically.
An "external" send queue is kept until the connection is up again for a dest node.
(This used to be ctdb commit 49cac6eafb9d9c80ef1c7f0388aa7786c8be6f24)
2007-02-26 11:59:20 +01:00
Peter Somogyi
6bcb712d3b
merged tridge's code
...
(This used to be ctdb commit fcf2f4783842edb3e91a62941aee62e24c19024c)
2007-02-22 18:25:18 +01:00
Andrew Tridgell
f49c93f96b
added --num-msgs option
...
added TCP_NODELAY on tcp sockets
(This used to be ctdb commit fa76cff388237adea98c2be0827c54334080256a)
2007-02-20 14:57:13 +11:00
Andrew Tridgell
cc2696cc50
added rest of tdb (missed in earlier commit)
...
(This used to be ctdb commit 4c1434cc4613fc94958de0aa882bf7ca41ec8458)
2007-02-20 13:24:45 +11:00
Andrew Tridgell
0ecc6cd1d0
ignored some files
...
(This used to be ctdb commit bb1a80492851c380fb239ce294fc1fae697006a0)
2007-02-20 13:23:43 +11:00
Andrew Tridgell
8be5bdd671
added a benchmark script that launches via ssh
...
(This used to be ctdb commit 7eeeb9c1d8f82739015ce78d8c90291baf3b1982)
2007-02-20 13:23:01 +11:00
Andrew Tridgell
ed6d9d0606
support hostnames for node names
...
(This used to be ctdb commit 5c45b51ec42cdbadce7870b47b765a79d8d41b8b)
2007-02-20 13:22:18 +11:00
Peter Somogyi
847343e00e
workaround proposal for the initialization-problem
...
(This used to be ctdb commit 2ee400d99fb57796a0e7c3256387ef77f6908f33)
2007-02-16 15:21:31 +01:00
Peter Somogyi
c82dd38544
merged tridge's fix
...
(This used to be ctdb commit 95d3bf8c31d39e697bfae09362fa5a271cbc6a26)
2007-02-16 15:20:36 +01:00
Andrew Tridgell
728b898321
fixed incr initialisation
...
(This used to be ctdb commit 36f386dcbca98c0bed96713e736170f6d537b83c)
2007-02-16 14:48:27 +11:00