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

1515 Commits

Author SHA1 Message Date
Andrew Tridgell
1c91398aef ensure the recovery daemon is not clagged up by vacuum calls
(This used to be ctdb commit ff7e80e247bf5a86adda0ef850d901478449675b)
2008-01-08 21:28:42 +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
41f63fe162 updated docs from ronnie
(This used to be ctdb commit 0390f9e68210dd7f6e750f7a5909a0f97841193c)
2008-01-08 11:47:29 +11:00
Andrew Tridgell
25bb60f112 show start/stop time of recovery on all nodes
(This used to be ctdb commit 9f7662279c367eb3e8a58e6f4aeca521e6f1f1d0)
2008-01-08 09:30:11 +11:00
Andrew Tridgell
61fd2d5d6f background the smbstatus -n command
(This used to be ctdb commit 0a05cc6763aa6e57089d3ce70516d359fcddb0e4)
2008-01-07 23:41:07 +11:00
Andrew Tridgell
37861932ce merge from ronnie
(This used to be ctdb commit 0aa6e04438aa5ec727815689baa19544df042cf7)
2008-01-07 16:17:22 +11:00
Ronnie Sahlberg
fd227f5d29 merge from tridge
(This used to be ctdb commit 586347cfcb8dd72ab6cef4e5d2fceb584f55cb3a)
2008-01-07 16:16:43 +11:00
Andrew Tridgell
d38fbaa38b nicer onnode output
(This used to be ctdb commit ac5c1e090d007bc2e3965589731620b87c0217fb)
2008-01-07 14:31:13 +11:00
Andrew Tridgell
4258098e98 catch internal traversal errors
(This used to be ctdb commit 8caa85ad71be5d20a8d6f0cb3d52aff6905657a4)
2008-01-07 14:08:25 +11:00
Andrew Tridgell
528e4d7a2b more efficient traversal in pulldb control
(This used to be ctdb commit fe614b10868e63b70e081b5bbfb74bf16fdf5716)
2008-01-07 14:07:01 +11:00
Andrew Tridgell
30e18ed48e don't retstart statd when we don't need to
(This used to be ctdb commit 94059f108b14c4a2442a40cf8f0eceb612c5d14a)
2008-01-07 14:05:30 +11:00
Andrew Tridgell
db6ac79579 new rpm version
(This used to be ctdb commit eb8fba9613e90088b295d6428d5edad7b75315ba)
2008-01-06 13:25:17 +11:00
Andrew Tridgell
748843a3c6 added paranoid transaction ids
(This used to be ctdb commit afc1da53873cdbd31fcc8c6b22fae262e344cf6e)
2008-01-06 13:24:55 +11:00
Andrew Tridgell
c08f2616cd new simpler and much faster recovery code based on tdb transactions
(This used to be ctdb commit 9ef2268a1674b01f60c58fed72af8ac982fe77a3)
2008-01-06 12:38:01 +11:00
Andrew Tridgell
4f5b717aa3 change default tunables to cope with larger dbs
(This used to be ctdb commit d91a2d43d1f0562cc3a12e6e1e2767f75d888f72)
2008-01-06 12:36:58 +11:00
Andrew Tridgell
108aafcdb2 non-persistent databases don't need sync transactions
(This used to be ctdb commit 52fd86addd23e4d6e0af2c716bd83d19675b1f5a)
2008-01-06 12:36:30 +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
43aa27c9ee this is needed with merged tdb
(This used to be ctdb commit 3dc07f2bf98ab445ab960ef14173bc6924e3b658)
2008-01-05 17:42:01 +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
5180a3b756 fixed excludes in tar ball creation for src rpm
(This used to be ctdb commit fe0662fb2cdf733c5c9da7e24641e89039cb3e54)
2008-01-05 13:08:10 +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
9311f7fb7e fixed the bug that make "onnode N service ctdb start" hang
(This used to be ctdb commit b50dcb16f30a60abce42f491f9b0aae7948b8206)
2008-01-05 12:09:29 +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
9bd69e75c8 ensure we always build the right version
(This used to be ctdb commit 841943e74355a4347cda5b23b1807522bf12f169)
2008-01-05 09:55:18 +11:00
Andrew Tridgell
02287e5781 update version
(This used to be ctdb commit 37a1d17365995f15696e4c338d7c2efcc04c1e6e)
2008-01-05 09:52:53 +11:00
Andrew Tridgell
e4aefbc66d a new tunable DatabaseMaxDead that enables the tdb max dead cache logic
(This used to be ctdb commit 01c519c3658a8fcb9545b507b597e723658e4c4e)
2008-01-05 09:36:53 +11:00
Andrew Tridgell
023a230d9c a useful hack for checking correct behaviour of recovery
(This used to be ctdb commit d88b95a5407b53ead47ca0638ee60653ea3d3d07)
2008-01-05 09:36:21 +11:00
Andrew Tridgell
f79dfd04c0 convert much of the recovery logic to be async and parallel across all nodes
(This used to be ctdb commit 8b72a02bf1045d8befb342a4111ca1316889262e)
2008-01-05 09:35:43 +11:00
Andrew Tridgell
9a625534c1 this fixes the non-dmaster bug that has plagued us for months
(This used to be ctdb commit 2acf6c6201862debfca054a09262f75c066d2deb)
2008-01-05 09:34:47 +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
fc21f78231 make some specific cases of the non-dmaster bug non-fatal
(This used to be ctdb commit 7b516ab06c7ba7ffe9ecf3f76720df5360176b2c)
2008-01-05 09:32:29 +11:00
Andrew Tridgell
c4826c203a added async pull, push and rsn handling functions
(This used to be ctdb commit 05d30180f64aaff13411b92586ac554d84a35d9a)
2008-01-05 09:31:43 +11:00
Andrew Tridgell
e9987cf236 fixed a warning
(This used to be ctdb commit f34d0f9351c1cda3327efb14e173f249f7854570)
2008-01-05 09:30:49 +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
8a10bc6561 update revnumber for custom tree
(This used to be ctdb commit 8b36f4a4f131102769782fe2994b846fc2b8da13)
2008-01-04 12:42:29 +11:00
Andrew Tridgell
afc7275c16 fixed a warning
(This used to be ctdb commit d6255438d63943736b24a7a6da190b6933379a61)
2008-01-04 12:42:10 +11:00
Andrew Tridgell
b4a5c5e988 make sure vars are set at startup before recovery
(This used to be ctdb commit 2c789f19b069c975c133dd8488b566a6715a8e76)
2008-01-04 12:41:53 +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
2509821503 prevent a re-ban loop for single node clusters
(This used to be ctdb commit b20a3369655bcba274c99091157ba7466994e848)
2008-01-04 12:11:29 +11:00
Andrew Tridgell
10bc8a4c92 added ctdb_randrec test tool
(This used to be ctdb commit be59e7f3db992667664a631433b99ff19f4313f0)
2008-01-04 09:41:04 +11:00
Andrew Tridgell
41fb8e283b add randrec to Makefile
(This used to be ctdb commit ded1f7903e8a6525ab1888e8c4f50c71fa23cc19)
2008-01-04 09:19:06 +11:00
Andrew Tridgell
bb06e831a0 more optimisations to recovery
(This used to be ctdb commit 9a41ad0a842cd4f3792d6e84b5c809b7ff6f342e)
2008-01-02 22:44:46 +11:00
Andrew Tridgell
1ebc6307f1 make this a custom build
(This used to be ctdb commit 570ad64dadde2056e41d95d1278cf030949855d5)
2008-01-02 12:06:55 +11:00
Andrew Tridgell
77c376eed9 make this a custom build
(This used to be ctdb commit cc805ec72c9b0e60e06b5b920fbb5fe67b266c2a)
2008-01-02 12:06:19 +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