1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

7394 Commits

Author SHA1 Message Date
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
Peter Somogyi
4b8fe2af0a Fixed a side effect of previous revert.
(This used to be ctdb commit 08d013df5c6389c471036b20758463a844d33027)
2007-01-25 14:22:03 +01:00
Peter Somogyi
c11b2f642b Merged tridge's branch.
Reverted ib join (will do later).

(This used to be ctdb commit a2e0277057407462b71ed3d6f79cea2f8c494f49)
2007-01-25 12:31:33 +01:00
Peter Somogyi
7c3982eb3b 1st "working" ib version.
TODO: stress test, variable size messages, flood

(This used to be ctdb commit 5f2a834fdcebe349aad095010ae01cce788b6482)
2007-01-25 11:01:59 +01:00
Andrew Tridgell
0dd4a16d26 simplified ctdb_call() interface, and made it easier to expand with more parameters later
(This used to be ctdb commit 6c816fe85e84faad167101bcf26850966c3044e5)
2007-01-25 16:13:17 +11:00
Andrew Tridgell
a8d382ffef use ctdb_call_info, so struct ctdb_call can be used for top level call
(This used to be ctdb commit 05565ce504b75671566661199f5203a9ace31583)
2007-01-25 15:19:16 +11:00
Andrew Tridgell
e90f9aa084 merge db wrap code from samba4
(This used to be ctdb commit 2f3c299c76ce463cd866dfb1900ff45928f32ba6)
2007-01-25 15:11:36 +11:00
Andrew Tridgell
e1797cf6be added copies of libs so can be built standalone
(This used to be ctdb commit 0bf6e6cb371bb946ea8cc1d8c7a23a41ea715832)
2007-01-25 15:10:40 +11:00
Andrew Tridgell
16d2ca6fa0 merge fixes from samba4
(This used to be ctdb commit fb90a5424348d0b6ed9a1b8da4ceadcc4d1a1cb1)
2007-01-23 11:38:45 +11:00
Peter Somogyi
9c114a3fc5 ibw: modified tridge's code - in my point of view
ibw_alloc_send and node-centric params are the basics of these important changes.
Also tried to avoid memcpy/memdup where it was possible.

(This used to be ctdb commit 9e8cb9b96c685288c04ee8b69a972f582cd3c904)
2007-01-05 18:13:35 +01:00
Peter Somogyi
00df320053 bugfix in ibw_send
Forgot to allow different message pointer than beginning of an allocated buf.

(This used to be ctdb commit de6f7ae87f17ab5c99f5cf369baa499cca96dee5)
2007-01-04 16:44:41 +01:00
Peter Somogyi
0397c81938 +1 ibw function +1 bugfix
Added ibw_cancel_send_buf to allow not sending the message after an ibw_alloc_send_buf.
Renamed "n" to "len" and changed its type.

(This used to be ctdb commit c8eb66296b99e528781ce05846aa86205830a1a0)
2007-01-03 17:37:47 +01:00
Peter Somogyi
11fb3ef3b5 Joining ctdb and ibwrapper (incomplete).
It compiles.

TODO: modify ctdb as well.

(This used to be ctdb commit a080b85a5d8e46946f8308bb6c76aa62b5a254db)
2007-01-02 18:16:39 +01:00
Peter Somogyi
96f10d7ff4 Added trace messages + several fixes
(This used to be ctdb commit 7d05cb6d0d8f222d7ba1cb1fe939d06a2176f3b6)
2006-12-21 17:41:48 +01:00
Peter Somogyi
2e056a7553 Added send queue.
TODO: check again & reduce.

(This used to be ctdb commit 131c41f6f3e08097e7e0fab852b2a64183c695ec)
2006-12-20 19:16:30 +01:00
Peter Somogyi
efd2903e0f Made receiver handle partial packets.
(This used to be ctdb commit 808fd658552e489825fb22453755e225549ebfcc)
2006-12-20 17:42:58 +01:00
Andrew Tridgell
e667345409 merge from Peter
(This used to be ctdb commit 19bbfc7eeaccb795782647c743690cf5c131796d)
2006-12-20 10:35:27 +11:00
Andrew Tridgell
9a2ca05372 merge from ab
(This used to be ctdb commit 5074b6e84704e213f733cebc92c62ca135f03cd6)
2006-12-20 10:32:31 +11:00
Andrew Tridgell
6dbaa5abfc simple ctdb benchmark
(This used to be ctdb commit eb80fd212472fe3b111dabe7adf6dd507fe3656a)
2006-12-19 16:27:03 +11:00
Andrew Tridgell
a3f91ddf57 enforce the tcp memory alignment in packet queue
(This used to be ctdb commit 222f53a3205509a45fbc3267297521df22a414ec)
2006-12-19 12:07:07 +11:00
Andrew Tridgell
3c097c9a5f added handling of partial packet reads
added transport level packet allocator, allowing the transport to
enforce alignment or special memory rules

(This used to be ctdb commit 50304a5c4d8d640732678eeed793857334ca5ec1)
2006-12-19 12:03:10 +11:00
Peter Somogyi
96035955be Modified send logic to allow large messages.
TODO: receiver side.

(This used to be ctdb commit 5ca8a53b10990a09390f174bf5eacf07fc5540c2)
2006-12-18 20:52:49 +01:00
Alexander Bokovoy
fc2d20e41e Fix cleaning targets to delete proper files
(This used to be ctdb commit 3af84af196e64332fa3ede0689c026b1faa97466)
2006-12-18 17:58:29 +03:00
Alexander Bokovoy
1d8c33e2a1 Fix memory handling
(This used to be ctdb commit a7ff834cec4c44eee7d1a84218e050a45b94d599)
2006-12-18 17:55:48 +03:00
Andrew Tridgell
ee547a0f9a wrap the packet queue call
(This used to be ctdb commit 4dd8ffd5752aedcaf0b8ad1941a5f84ec1ca2868)
2006-12-18 16:26:57 +11:00
Andrew Tridgell
1f44ccb569 added a 4 node test
(This used to be ctdb commit 982468d0770684ec18cf95e3f254250debf4fd4c)
2006-12-18 16:05:22 +11:00
Andrew Tridgell
ab7185c2ce added request_dmaster and reply_dmaster logic
ctdb will now move the dmaster role between nodes after
CTDB_MAX_LACOUNT consecutive accesses by the same node.

(This used to be ctdb commit af87f587d8f70192ecac0125054bf9583a4849a7)
2006-12-18 16:01:11 +11:00
Andrew Tridgell
26fd5c44bb added logic for keeping track of the lacount
(This used to be ctdb commit efda7735a950a129814e6a7de8bbf5432b867c68)
2006-12-18 14:58:40 +11:00
Andrew Tridgell
0ef74421b4 expanded some comments
(This used to be ctdb commit cf544e986d5837cc878792af571bdb23cc487882)
2006-12-18 14:49:32 +11:00
Andrew Tridgell
ceda8326e3 added redirect handling
(This used to be ctdb commit 3c1dc8b98c8e843c44a172ac15e67f4ab8c47500)
2006-12-18 14:44:06 +11:00
Andrew Tridgell
f78c238b6d added error reply packets
(This used to be ctdb commit 49ee165808985ce0fa174dd6e05292871d3f3130)
2006-12-18 14:27:20 +11:00
Andrew Tridgell
abf3b910be next step towards dmaster/lmaster code
(This used to be ctdb commit 95e7be8d1aaafafb574c406fe778093606a28be8)
2006-12-18 14:05:49 +11:00
Andrew Tridgell
3804b8b3e4 added storage of extended ltdb header information
(This used to be ctdb commit a18c9411081a4e5997bf030fa924abfc33fb3310)
2006-12-18 13:24:02 +11:00
Peter Somogyi
0e1b3f1f12 Added checks for ib libs and headers
(This used to be ctdb commit 0fecfdea111f2f5d25eadce04c5f35dffca29b26)
2006-12-15 16:58:49 +01:00
Peter Somogyi
d323249d2c Made infiniband support configurable.
Adjusted "make distclean" NOT to remove the lib folder (again).
Removed again config.h.in autogenerated file from bzr.

(This used to be ctdb commit 3c264205157c8c2af03bca0051a1fe715c8470e5)
2006-12-15 16:02:45 +01:00
Andrew Tridgell
4777809b62 merge IB code from peter
I didn't merge the Makefile.in change as it needs a configure option
to allow people to enable IB, or to test for the headers and
libraries. Peter, are you comfortable doing that?

(This used to be ctdb commit c432f377b6e71183309d32256a834683801045f8)
2006-12-15 20:21:46 +11:00
Peter Somogyi
522ad11f06 Raw impl. of ibwrapper test tool.
(basic functional test, compilable, untested)
Adjusted makefile and ibwrapper state checking.

(This used to be ctdb commit 82410f42fe5d428eda0ba96c11774e142f672d24)
2006-12-14 18:21:39 +01:00
Peter Somogyi
ffefb5c24f Made ibwrapper compilable.
Adjusted makefile to include the project.
libibverbs and librdmacm has to be installed with headers.

(This used to be ctdb commit 372dc670a7aeb5887c4f24bd5466aa6a77e22f1f)
2006-12-13 15:00:41 +01:00
Peter Somogyi
6df8352035 Using struct <type> instead of typedefs.
(This used to be ctdb commit d830c1ca25b13e82357f439a2ba39540f81a6ecd)
2006-12-13 11:02:49 +01:00
Peter Somogyi
4e3beb673e Raw implementation done.
Let's start compilation...

(This used to be ctdb commit 24d2a0615a308dee47ae87c5c84e1133858b3d27)
2006-12-12 19:09:16 +01:00
Peter Somogyi
96cdb37f7b Rough implementation of buffer handling.
Many conceptual fix.

(This used to be ctdb commit 26ed351cfc883691446c792cd2d93847a31bc659)
2006-12-11 19:56:15 +01:00
Peter Somogyi
c7041149b4 Implemented cm usage.
TODO: implement verbs user logic.

(This used to be ctdb commit afa33107137698500d0aabaf244ea4276c415929)
2006-12-06 18:49:46 +01:00
Peter Somogyi
49773cc523 Added some event handling (incomplete)...
(This used to be ctdb commit 055854ed0193bdd344c64c95ef3864580f744ecf)
2006-12-05 18:48:16 +01:00
Peter Somogyi
cb26789308 bzr email plugin test
(This used to be ctdb commit 85c7d655c0d0909f2b527ec2a233e430db683da8)
2006-12-05 16:25:43 +01:00
Peter Somogyi
45280f749e Testing e-mail notification...
(This used to be ctdb commit f7ebe9c1d4515a6bf39f1321b252b791560ff04b)
2006-12-05 13:17:41 +01:00
Peter Somogyi
9c21a32c30 Using samba DLIST helper macro set.
(This used to be ctdb commit 1ed174dd02428748b8273a91c8d0d335795f12c3)
2006-12-05 13:09:48 +01:00
Peter Somogyi
948dd45225 Implementing basic data structure handling...
(This used to be ctdb commit abc571a9948b51a436bacaae89b49b8a0e08a093)
2006-12-04 19:48:11 +01:00
Peter Somogyi
00480bf2bf Just testing the bzr e-mail plugin...
(This used to be ctdb commit 2eb9faa615aa10e45a744045c5373c4ab1d2783b)
2006-12-04 14:27:46 +01:00
Peter Somogyi
71dcef5635 Added infiniband transport implementation(incomplete) and interface.
(This used to be ctdb commit b53356124141b6419a2cd3652a8dd4389fe8e46b)
2006-12-04 14:02:08 +01:00
Alexander Bokovoy
606a4d9113 Provide an alternative CTDB_NO_MEMORY_NULL() for functions which return a pointer
(This used to be ctdb commit 51c79e19df777fb53a5c210efc1c9d3159059de3)
2006-12-01 12:26:21 +03:00
Andrew Tridgell
35a627cc32 queue up packets to nodes that aren't connected yet. This avoids a
startup race condition in the test suite

(This used to be ctdb commit b623ac755de843a3386a7c0e882d651b7f20d482)
2006-12-01 15:54:15 +11:00
Andrew Tridgell
ec5d2ddd8e - added ctdb_set_flags() call
- added --self-connect option to ctdb_test, allowing testing when a
  node connects to itself. not as efficient as local bypass, but very
  useful for testing purposes (easier to work with 1 task in gdb than
  2)

- split the ctdb_call() into an async triple, in the style of Samba4
  async functions. So we now have ctdb_call_send(), ctdb_call_recv()
  and ctdb_call().

- added the main ctdb_call protocol logic. No error checking yet, but
  seems to work for simple cases

- ensure we initialise the length argument to getsockopt()

(This used to be ctdb commit 95fad717ef5ab93be3603aa11d2878876fe868d3)
2006-12-01 15:45:24 +11:00
Andrew Tridgell
7e21f51b05 - added a 1 node test
- only need 10 elements in test code, more just makes it hard to
  follow in a debugger

(This used to be ctdb commit 7df191112b10466a35a4ff130dade52a6c3c2646)
2006-12-01 10:23:03 +11:00
Andrew Tridgell
559f169aa2 - fixed the sort function to include the exsting data
- use numbers below 1000 in test code to make debug easier

- use ctdb_connect_wait()

(This used to be ctdb commit 216850e63e335de7d7cbe6c351d948bb8f1565e7)
2006-12-01 09:02:17 +11:00
Andrew Tridgell
326f2c7f98 need the header changes too
(This used to be ctdb commit 57dd0a1453e99604b3accc6dc2c183c547f37d1b)
2006-12-01 09:01:11 +11:00
Andrew Tridgell
375eeb8a24 added ctdb_connect_wait()
(This used to be ctdb commit 0a033f04bbc17db1aaa3a4458149e1e6b055cb9a)
2006-12-01 08:58:08 +11:00
Andrew Tridgell
c6e9ec5166 merge parts of the changes from ab. Don't merge ctdb_test changes yet
(This used to be ctdb commit 003a9233e4dbd82b47aad5e124c4bf6d8c1925e0)
2006-12-01 07:04:33 +11:00
Alexander Bokovoy
7586ae4ebb regenerate configure after changing configure.ac
(This used to be ctdb commit 5c15cfabba62a8150cf87f3f903ba42670841100)
2006-11-29 17:48:52 +03:00
Alexander Bokovoy
c49d23169a change test a bit -- work on whole array of ints and process it in the loop (locally)
(This used to be ctdb commit d7406263e220b093254603c2dc4884a697631760)
2006-11-29 17:48:32 +03:00
Alexander Bokovoy
5f3ef90134 rely on ctdb_test.c for the moment
(This used to be ctdb commit ba7b425d01719d745fb95842dec9b19b3d310ca7)
2006-11-29 17:48:01 +03:00
Alexander Bokovoy
ad4443e5e2 Fix ctdb_call() fetching data and ltdb backend flags
(This used to be ctdb commit 5ecee128edcd56d7715567cc1d1403453826c664)
2006-11-29 17:47:42 +03:00
Alexander Bokovoy
b17a9b8f97 Ignore configure
(This used to be ctdb commit 7d6e4c7dcf5bfce80195002d618784aca0c3b96e)
2006-11-29 17:45:14 +03:00
Alexander Bokovoy
bc26f2af2f Ignore configure
(This used to be ctdb commit 92e1e546cdf0a0c9ff4978c32fbd56a305b142bf)
2006-11-29 17:43:05 +03:00
Andrew Tridgell
fcae7fb9ca - added in idtree for efficient reqid handling
- started adding ctdb_call() code

- added ctdb_call_local() implementation

(This used to be ctdb commit 97b1fdf7fa0e230f36add3f1770ecb3a9faee0a1)
2006-11-28 20:48:34 +11:00
Andrew Tridgell
fdb317facf - added simple (fake) vnn system
- split up ctdb layer code into 3 modules

- added a simple test suite

- added packet structures for ctdb_call

- switched to an array for ctdb_node to make vnn lookup easy and fast

(This used to be ctdb commit 8a17460a816a5970f2df8244a06aec55d814f186)
2006-11-28 17:56:10 +11:00
Andrew Tridgell
5d0ba69e06 - setup a convenience name field for nodes
- added basic IO handling for the tcp backend

- added a ctdb_node_dead upcall

- added packet queueing

- adding incoming packet handling

(This used to be ctdb commit 415497c952630e746e8cdcf8e1e2a7b2ac3e51fb)
2006-11-28 14:15:46 +11:00
Andrew Tridgell
5b06e73fb1 - split up tcp functions into more logical parts
- added upcall methods from transport to ctdb layer

(This used to be ctdb commit 59f0dab652000f1c755e59567b03cf84dad7e954)
2006-11-28 11:51:33 +11:00
Andrew Tridgell
5af324a795 this file is not needed yet
(This used to be ctdb commit 7204fc26dedb0b610d3b92eb1e1d7492ee9c7eb0)
2006-11-27 21:41:36 +11:00
Andrew Tridgell
749a6b4c3a started splitting out transport code
(This used to be ctdb commit 3b75ef65bd0bff9c6366aba5a26b90be509fa77b)
2006-11-27 21:38:13 +11:00
Alexander Bokovoy
238439d736 Fix popt handling, this fixes segfault while asking for --help
(This used to be ctdb commit b4d48ff750740cb398836c143930f2780a074885)
2006-11-27 11:19:03 +03:00
Andrew Tridgell
77f444b0ad example node list
(This used to be ctdb commit 2552bde0d5b7b4d30f1c14da50098d2b1c77fef6)
2006-11-18 15:34:35 +11:00
Andrew Tridgell
b97e51b765 don't talk to ourselves
(This used to be ctdb commit 0e90e364cb0602c59030aaa8e51064589849efe8)
2006-11-18 15:33:56 +11:00
Andrew Tridgell
9ef0cfa2e9 added a test event loop
(This used to be ctdb commit 0a07269cc5e44f47352ac39170ce4cb9b400055f)
2006-11-18 15:27:36 +11:00
Andrew Tridgell
767dec9f62 added event context
(This used to be ctdb commit 3c9d5aba205c97ef2698567e42ed49cadf8137f2)
2006-11-18 14:33:05 +11:00
Andrew Tridgell
84ff6b1731 added ignore
(This used to be ctdb commit 3e119ebe7c545e31626f09fdc6dc075c09528411)
2006-11-18 13:48:14 +11:00
Andrew Tridgell
bbd6b83c63 stub for ctdb_call
(This used to be ctdb commit d707ad000c4f37686a0698f2c3047bbbaa7e875b)
2006-11-18 13:46:38 +11:00
Andrew Tridgell
2f96398da1 added incoming setup
added ctdb_start

(This used to be ctdb commit da6f07f7bb8b6a0a0d4e4c0e1358401d1f9f4175)
2006-11-18 13:45:04 +11:00
Andrew Tridgell
75bc761967 added ctdb_set_address and broke out parsing
(This used to be ctdb commit 88071e67c916be8c9cd406f1353480183e24919c)
2006-11-18 11:21:40 +11:00
Andrew Tridgell
2b0530f51d get rid of some .svn files
(This used to be ctdb commit 43a7b5f1cf9d4aa46bf0f3b7857f0af5ada26b0b)
2006-11-18 11:00:52 +11:00
Andrew Tridgell
36223f0540 added a README
ignore some files

(This used to be ctdb commit b0d064e666170f7bb004639b6da9e0200f97c608)
2006-11-18 10:57:01 +11:00
Andrew Tridgell
050bea4a26 right include file path
(This used to be ctdb commit 5ebe14acdc972dc3ad37bdba6b3f113c36a814a7)
2006-11-18 10:55:55 +11:00
Andrew Tridgell
6613b7d438 initial version
(This used to be ctdb commit 5bba7deef9b03a68d336c138e83d6d4fac35bfce)
2006-11-18 10:41:20 +11:00