1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

138 Commits

Author SHA1 Message Date
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
Andrew Tridgell
3c6a64175e merged peters IB work
(This used to be ctdb commit a7062f777c6bcf5ea5aca1e6fd647f5c4806f7f0)
2007-02-16 14:41:45 +11:00
Peter Somogyi
199a5befb6 1st working ib integrated ctdb
TODO: bugfix of ctdb_bench (wants to sent via uninitialised connection - see bench_ring/dest)

(This used to be ctdb commit 61516461e9d45dc7ba87518d134894fed7d7b7cd)
2007-02-15 17:02:38 +01:00
Peter Somogyi
1c8bcd6f57 ib: a trivial approach of integration
TODO: bugfix (not yet complete, something happens differently than expected 
at tcpip when connection is refused in the beginning)

(This used to be ctdb commit 330d76fb91f717d4fb8d1be29c11ddf8c25a4f1c)
2007-02-14 18:58:20 +01:00
Peter Somogyi
8b6f1c39e7 Some minor changes before integrating ib...
(This used to be ctdb commit fa39ad5054de6e781ca980b9e24d22fa0c67e9ae)
2007-02-12 16:47:12 +01:00
Peter Somogyi
3e9e91103b Merged tridge's code.
(I had error 206 at direct bzr merge, so 1st I did a "bzr branch" and merged that one.)

(This used to be ctdb commit 9d4d2a8e034f1288583eb98c0f48a51ff323ccac)
2007-02-12 15:13:22 +01:00
Peter Somogyi
1966bdbff4 ib: adjustment of a test scenario
(This used to be ctdb commit be9d147e754f41bef9c34d1e924c03172ff96a7f)
2007-02-09 18:06:13 +01:00
Andrew Tridgell
16a3a6d0cb added a simple benchmark script
(This used to be ctdb commit 508cca97083bf21bcce3505d0964dd33a8298624)
2007-02-09 12:46:16 +11:00
Andrew Tridgell
f71f62fabd changed ctdb_bench.c to use messages instead of calls
(This used to be ctdb commit d147a434f827f83cf90228a3ed37338db8e9df13)
2007-02-09 12:45:58 +11:00
Andrew Tridgell
e372d2d5fb merged ib work from peter
(This used to be ctdb commit cc3d44b531999dafd752be84e8a966ea6252d65a)
2007-02-09 09:54:21 +11:00
Andrew Tridgell
df4439d384 ignore config.h*
(This used to be ctdb commit f4e4bbc7ae8235654d7c58103e47fc5f30ddc272)
2007-02-09 09:47:53 +11:00
Andrew Tridgell
26d62554c2 merged ctdb messaging code from samba4
(This used to be ctdb commit af3010562763811deb9b7e37fea9962a42885d9d)
2007-02-09 09:42:04 +11:00
Peter Somogyi
36a49682ed merged tridge's code
(This used to be ctdb commit 85d23c52462f6c706626022c3d2ddf731c93599f)
2007-02-08 19:08:58 +01:00
Peter Somogyi
cae71b84d6 ib: fragment sent buf + many bugfixes
It came to light I have to fragment the send buffer in case destination's to fit receiver's buffers.
Additionally fixed many bugs.
Still testing.
+ TODO: clean code.

(This used to be ctdb commit 2f8876f09bc92169487cb077326579044560a121)
2007-02-08 19:06:14 +01:00
Andrew Tridgell
979ef2832a merged from samba4 ctdb
(This used to be ctdb commit 677fd2a7758b743ea920d0b3adb85fbb3f1ff49e)
2007-02-07 13:26:07 +11:00
Peter Somogyi
3222a41b9b Added variable msg size scenario.
Detected 1 bug, fixing...

(This used to be ctdb commit 0b7bbd6d7f74f102c475f92448609673dc5efdca)
2007-02-02 18:54:57 +01:00
Peter Somogyi
36d53e5043 2 bugfixes
- ibw_stop handling
- ibw_send: < instead of <=

(This used to be ctdb commit 4774ef7e9e33f26745346b9bfe445d913f196e81)
2007-02-01 18:46:44 +01:00
Peter Somogyi
a9a03b6c00 merging tridge's code...
(This used to be ctdb commit 4f97ecf6efb9216a49cf1856fe27337c092f511c)
2007-01-31 12:24:55 +01:00
Peter Somogyi
116bdb2590 Added overload test scenario + fixed 1 send queue bug.
TODO: externize debug level

(This used to be ctdb commit 98442ce3e2b3f09ca6736abfa0a8314cbdafaac7)
2007-01-30 18:47:26 +01:00
Andrew Tridgell
c16b530257 merge status code changes from samba4 ctdb
(This used to be ctdb commit 705a9f8e5238976aa5c8cd4a5371459650d8b553)
2007-01-29 22:30:06 +11:00
Andrew Tridgell
d331277659 fix a bug in new structure handling
(This used to be ctdb commit 5f248d82717c8094f260ea16292996bb712df947)
2007-01-29 22:11:16 +11:00
Peter Somogyi
952a1ba44d Adjusted debug level and test scenario.
(This used to be ctdb commit 7d87132195e603f936368da5dd4cb6754c45b721)
2007-01-26 16:45:51 +01:00
Peter Somogyi
d47db1daaa Adjusted ib test tool #1.
Now fixed number of pingpong messages can be sent and then exit.

(This used to be ctdb commit 993188cf4df055a65cb49e91a368e9de1d68b6cf)
2007-01-25 18:57:47 +01:00