Andrew Tridgell
35e8f2ff6c
tdb_freelist_size was reporting 1 more than correct size
...
(This used to be ctdb commit 46214c9234c574b45bce0b88bfb3af437415a69e)
2008-01-10 09:42:44 +11:00
Andrew Tridgell
bc85af6b61
a compromise for freelist scanning - we now will look for other than the first fit, but get exponentially more desperate as we get deeper into the freelist
...
(This used to be ctdb commit f3319ef84c47dc8bf0bfb4ef1c72cee58ed9d88c)
2008-01-09 15:33:10 +11:00
Andrew Tridgell
96100fcae6
added two new ctdb commands:
...
ctdb vacuum : vacuums all the databases, deleting any zero length
ctdb records
ctdb repack : repacks all the databases, resulting in a perfectly
packed database with no freelist entries
(This used to be ctdb commit 3532119c84ab3247051ed6ba21ba3243ae2f6bf4)
2008-01-08 17:23:27 +11:00
Andrew Tridgell
4322a86645
ensure tdb log messages appear in ctdbd logs
...
(This used to be ctdb commit b2439487832230e7b738c0f89eeaa2c0c4ba0951)
2008-01-06 12:35:49 +11:00
Andrew Tridgell
ff039b405f
- added tdb_add_flags() and tdb_remove_flags()
...
- make freelist merging more paranoid
- fixed TDB_DATA_STAART() (broken by earlier commit)
(This used to be ctdb commit c3be8eb7d1ca316111ec51f45dbca2fa5609cf93)
2008-01-06 12:33:57 +11:00
Andrew Tridgell
841a04924c
merge from Samba4
...
(This used to be ctdb commit 9aed7a1d065272c2e5b54872228a73f37664b526)
2008-01-05 17:41:41 +11:00
Andrew Tridgell
370779a1bb
update from Samba4
...
(This used to be ctdb commit 298118c41bd33acd1a34a35a71a28451a45390c5)
2008-01-05 17:41:01 +11:00
Andrew Tridgell
67d2b14d90
convert tdb from u32 to uint32_t to match the current Samba trees
...
(This used to be ctdb commit 0dc754b7e8b0985a252885ed043949dfb7ea1ae1)
2008-01-05 17:22:47 +11:00
Andrew Tridgell
c2f84d6f4e
Rewrote the tdb transaction code to be O(N) instead of O(N^2)
...
The previous transaction code was fast as long as you didn't do too
many writes within the transaction. The new code is a bit slower for
very small numbers of writes, but scales linearly as the number of
writes increases. The old code scaled as O(N^2) with the number of
writes, making it unusable for large N.
After testing, this needs to be merged into the Samba version of tdb,
along with many of the other recent tdb changes in the ctdb tree.
(This used to be ctdb commit bef8fe3d3ba80c7c660972c5357407f5278f7e26)
2008-01-05 17:19:47 +11:00
Andrew Tridgell
a54b88dba2
fixed data offset definition
...
(This used to be ctdb commit cef83d74883f6c66866fb7e5e17769322a3473da)
2008-01-05 12:10:18 +11:00
Andrew Tridgell
63b2d1c34e
cleanup the new freelist code
...
(This used to be ctdb commit 76137104c7028b061578950d4b6b35ca8267fab1)
2008-01-05 12:09:00 +11:00
Andrew Tridgell
a21afe88bc
added tdb_wipe_all() function
...
(This used to be ctdb commit 8e2d81cf54630970d66af92de2c0333acd2e1d22)
2008-01-05 12:08:41 +11:00
Andrew Tridgell
69fb0d3874
avoid write locks during delete checks in traversals
...
(This used to be ctdb commit dde9f3f0061988a0cdf10ee9e4db982c1b79ad1a)
2008-01-05 09:33:39 +11:00
Andrew Tridgell
9ea20f3916
expand tdb by minimum of 25% at a time
...
(This used to be ctdb commit 355575878e2b6e85268ca8387f41a19bcd9db651)
2008-01-05 09:30:09 +11:00
Andrew Tridgell
ea13223fbb
prevent O(n^2) behaviour for traverse after large numbers of deletes
...
(This used to be ctdb commit e3c60552366f1d8d464c43efbcd6ed5a2a1adb71)
2008-01-04 12:12:02 +11:00
Andrew Tridgell
fa965dee8f
quick fix for timeout in recovery
...
(This used to be ctdb commit 9205c681a819782d061bb41637191c130e91b100)
2008-01-02 12:04:07 +11:00
Andrew Tridgell
623e216dcf
remove a incorrectly added file
...
(This used to be ctdb commit ff01a32db81b6c04d42634f5660181c270988264)
2007-10-19 09:30:55 +10:00
Andrew Tridgell
81bfa58d58
make sure we set close on exec on any possibly inherited fds
...
(This used to be ctdb commit d9dec82076f14a348e7b67b4350180681ff86f32)
2007-09-19 11:46:37 +10:00
Andrew Tridgell
8a81a03b9e
merge from ronnie
...
(This used to be ctdb commit e06f70f064e39f1a4a394f00b81b6b1d215534d4)
2007-08-07 13:40:13 +10:00
Andrew Tridgell
5b899f0edf
make timed_event structure private to events_timed.c
...
(This used to be ctdb commit 4a61132e2a4f6beca8e9148307c7ec16cb74bb08)
2007-07-25 11:43:27 +10:00
Andrew Tridgell
f97f2946d2
minor back-merge from samba4
...
(This used to be ctdb commit c591f9b2d2847f440702e7264c7da2fd6d69f4be)
2007-07-10 18:13:47 +10:00
Andrew Tridgell
a4c96397f5
more merges for GPLv3 update
...
(This used to be ctdb commit b7be4ee6c9a670cdf148fd36b092c3991a554964)
2007-07-10 15:46:05 +10:00
Andrew Tridgell
a78752eae4
update lib/events from samba4 (If->if)
...
(This used to be ctdb commit 770d1665011af0359aadb2175e9e3440e2effbf5)
2007-07-10 15:34:00 +10:00
Andrew Tridgell
3973b415be
update lib/tdb from samba4
...
(This used to be ctdb commit 96a39ccee38bcfd64d614fe4670766e59ef246b6)
2007-07-10 15:32:27 +10:00
Andrew Tridgell
32de198fd3
update lib/replace from samba4
...
(This used to be ctdb commit f0555484105668c01c21f56322992e752e831109)
2007-07-10 15:29:31 +10:00
Andrew Tridgell
732353de5f
- merged ctdb_store test from ronnie
...
- added DatabaseHashSize tunable
- added logging of events inside recovery (for timing)
(This used to be ctdb commit 3593cdb928b91e217faf1b3c537fa28dc82cdace)
2007-06-17 23:31:44 +10:00
Andrew Tridgell
14c788f3cb
move more util code to lib/util
...
(This used to be ctdb commit de5ab0584c978a6be4afeacd80c84015b206a3c6)
2007-06-07 22:30:29 +10:00
Andrew Tridgell
69edd8e617
another place we need to cope with the strange epoll fork semantics
...
(This used to be ctdb commit cb1eeec15e61a7eb401e9e65306642343d5deb6e)
2007-06-02 10:01:17 +10:00
Andrew Tridgell
cc87648933
merge lib/replace from samba4
...
(This used to be ctdb commit d1a0bcbe331b05ad7a3f5f7a33e4c9b5242c43f2)
2007-05-30 18:06:57 +10:00
Andrew Tridgell
bc891232b6
fixed some debug messages
...
(This used to be ctdb commit 037f0149c0c0e65af0a1669b9a52586129e4b48f)
2007-05-29 13:48:30 +10:00
Andrew Tridgell
edf03e88c8
global lock should imply the transaction lock
...
(This used to be ctdb commit 765a7e27344476ea8835565839b69872ea6ab6f0)
2007-05-22 13:14:51 +10:00
Andrew Tridgell
13392414b1
nicer date formatting
...
(This used to be ctdb commit 78c256caa738593e335de65df752ff015f3a38e1)
2007-05-19 14:01:02 +10:00
Andrew Tridgell
2d9f0ee606
merge from samba4
...
(This used to be ctdb commit 3028a1b5c21b981c4487b55f026e6645bbeada89)
2007-05-18 11:24:45 +10:00
Andrew Tridgell
51f5bd2b31
merge from samba4
...
(This used to be ctdb commit b280bb01fc9afea5a9168c63d92907dac725b22b)
2007-05-18 08:33:10 +10:00
Andrew Tridgell
0b11bd99dd
merged from samba4
...
(This used to be ctdb commit 23b1c00f8bf60739aee935bac44981b68477ee1f)
2007-05-17 17:54:02 +10:00
Andrew Tridgell
6d32a6dd50
merged debug changes from samba4
...
(This used to be ctdb commit f01180148635b9fcc0f50beddb87be0a2071dfd4)
2007-05-17 12:43:09 +10:00
Andrew Tridgell
241ce32f1d
merged events changes from samba4
...
(This used to be ctdb commit cd9280556663bc8929672ada6ea556e097c4b2b3)
2007-05-17 12:39:53 +10:00
Andrew Tridgell
ae55e4181d
added _mark calls for tdb_lockall
...
(This used to be ctdb commit e59134fd2af67c746b907c23fdcde2eccbbe17cf)
2007-05-12 14:33:10 +10:00
Andrew Tridgell
698d2a6af4
added nonblocking varients of the two lockall functions to tdb
...
(This used to be ctdb commit 2e99fa41ce01fa282bc0f3244ca42a78173743ed)
2007-05-10 17:43:08 +10:00
Andrew Tridgell
a3c70ac520
merge relevant lib code from samba4
...
(This used to be ctdb commit 8076a7c7e12da6d59bae31a2e4a0267d87c7b1b3)
2007-05-05 17:46:54 +10:00
Andrew Tridgell
3bfeb3d235
- added a EVENT_FD_AUTOCLOSE flag that allows you to tell the event system to close the fd automatically when a fd_event is freed. This prevents races which can lead to epoll missing events
...
- added autoconf rules for automatically building with epoll support
(This used to be ctdb commit 4d113298b26f7163992f2e47429c953bd4f957c9)
2007-05-05 17:17:25 +10:00
Andrew Tridgell
d903e9542d
added tdb_chainlock_mark() call, which can be used to mark a chain locked without actually locking it. This will be used to guarantee forward progress in the ctdb non-blocking lockwait code
...
(This used to be ctdb commit 2af98c3418496b39106c7282f550049ec8239657)
2007-05-05 17:14:33 +10:00
Andrew Tridgell
fccc585f5a
added seqnum propogation code to ctdb
...
(This used to be ctdb commit be2572b1b09eaaa1ea6a726d60f16996f9407d13)
2007-05-04 22:18:00 +10:00
Andrew Tridgell
6bc3758082
added a tdb_enable_seqnum() function
...
(This used to be ctdb commit 1f89da231c6637e339d5da156d6a48340706fe61)
2007-05-04 15:29:10 +10:00
Andrew Tridgell
6c114bb1bd
enabled built in popt if system doesn't have it
...
(This used to be ctdb commit 30c8d69267a78e1d3dea0fcc936ee2939bb7a373)
2007-05-03 05:21:14 +10:00
Ronnie Sahlberg
599fa31266
update some calls to ctdb_control() that were still using the old
...
signature (flags field)
update some calls to ctdb_get_config() to use the new name
ctdb_ctrl_get_config()
change #include "talloc/talloc.h" to #include "lib/talloc/talloc.h" in
lib/events/events.h
(This used to be ctdb commit d2cdd87037b9f0c387228d7d4743da4869929c93)
2007-05-02 11:02:04 +10:00
Andrew Tridgell
e93b52a323
new files for updated events system
...
(This used to be ctdb commit 15d8308e5a0ce04351d70ac3dd25c7698931ebba)
2007-05-02 07:37:58 +10:00
Andrew Tridgell
169f129404
merge latest versions of lib/replace, lib/talloc, lib/tdb and lib/events into ctdb bzr tree
...
(This used to be ctdb commit eaea8a9fa8d2f5e08f3af619fa1008a663f39053)
2007-05-02 07:32:04 +10:00
Andrew Tridgell
3a05ad1402
fixed a lib/events bug found by volker
...
(This used to be ctdb commit 46cd984500cd77d295f059132b4892dbfbc2bcd3)
2007-05-02 06:50:12 +10:00
Andrew Tridgell
76381c4493
added make test and make valgrindtest targets
...
(This used to be ctdb commit b69fb43643993ee5aaabf8711bb874f95d468f35)
2007-04-28 10:57:58 +02:00