summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Fix bashism in 40.fs_useMathieu Parent2011-10-121-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | Also, add -P to df, to avoid multiline on Linux when device name is long (this is the case with LVM) (This used to be ctdb commit f4d5a5810f1a840a41c3541a3b822fce44d41e9a)
| * | | Typo deamon -> daemonMathieu Parent2011-10-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Thanks to lintian (This used to be ctdb commit dd9e508c947613cc7a5046a35c80fbeced408803)
| * | | apache's service name is not always httpdMathieu Parent2011-10-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Solution 2 of <https://bugzilla.samba.org/show_bug.cgi?id=8317> (This used to be ctdb commit 8b9ac5cd8d867ff4866ac464c570d9293d03a91e)
| * | | Less verbosity when there is no public addresses fileMathieu Parent2011-10-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This partialy reverts 81eff51, but still avoid spam. (This used to be ctdb commit e646142f4d28b5401235cd5edee325f7a29f8193)
| * | | Fix broken readdirMathieu Parent2011-10-121-3/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | Submited by Lorenzo De Liso on <http://bugs.debian.org/603155> (originaly named 99-fix-broken-readdir-test.diff). Also reported as <https://bugzilla.samba.org/show_bug.cgi?id=7032>. (This used to be ctdb commit 29474420606e802c83b53ef5f8e372c8eeac83c1)
| * | One of the entry points to release an ip reset the pnn field before invoking ↵Ronnie Sahlberg2011-09-221-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the eventscript. this triggered a check for "only run the eventscript if we host the address" to trigger and shortcir=cuit calling the eventscript. An effect of this would be that 'ctdb delip' would remove the ip from ctdb, but fail to delete it from the interface. S1028798 (This used to be ctdb commit b82524f240bf21769dd7624ca6026763d38b9396)
| * | Change the 'This Node' column of the machinereadable output for 'ctdb status ↵Ronnie Sahlberg2011-09-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | -Y' to Y/N instead of 1/0 1/0 is unsuitable since it can be useful to check 'if a column is "1" there is something wrong with that node' (This used to be ctdb commit b963f5e40b1e73a60363568da88557cad9e58a28)
| * | when checking that the interfaces exist in ctdb_add_public_address()Ronnie Sahlberg2011-09-211-3/+3
| |/ | | | | | | | | | | cant talloc off vnn since it is not yet initialized and might not always be NULL (This used to be ctdb commit 3d37be3e2bfb61ede824028aeebaa18ba304faae)
| * ReadOnly: revokechild_active is a list, not a context.Ronnie Sahlberg2011-09-131-1/+0
| | | | | | | | | | | | | | Dont reset the pointer to NULL after deleting the first entry, loop deleting one entry at a time until they are all gone or we will leak some memory and possibly a process. (This used to be ctdb commit 8a86ac72088ad9f64ca83218c704f84c9abe00b6)
| * Document 'cattdb' more clearly that it dumps the content of the local TDB ↵Ronnie Sahlberg2011-09-132-2/+8
| | | | | | | | | | | | and not the CTDB database (This used to be ctdb commit 71bf1260b1cac5ce83a92b4b944096b631ca87d8)
| * fix some compiler warnings for the test toolsRonnie Sahlberg2011-09-132-5/+5
| | | | | | | | (This used to be ctdb commit dbfd5abafbe66c20c413a4335b2cdbd9cc24052a)
| * ReadOnly: Rename the function ctdb_ltdb_fetch_readonly() to ↵Ronnie Sahlberg2011-09-133-4/+4
| | | | | | | | | | | | ctdb_ltdb_fetch_with_header() since this is what it actually does. (This used to be ctdb commit 94a5ce4e08e7891f07dbfe4c822ca4be5ab10965)
| * Fix a typo in a message in ctdb backupdb.Michael Adam2011-09-121-1/+1
| | | | | | | | (This used to be ctdb commit f6a47197dbb64cc7705fc564fa8dc78e958226c4)
| * Fix additional breakage from the merge for change in signature for ↵Ronnie Sahlberg2011-09-124-10/+8
| | | | | | | | | | | | ctdb_cmdline_client() and ctdb_attach() (This used to be ctdb commit 14656eaa01a8951693fa146b3d35258f7daaafd5)
| * Merge branch 'master-readonly-records' into fooRonnie Sahlberg2011-09-1219-38/+2092
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile.in tools/ctdb.c (This used to be ctdb commit 0fedef0ffba4178126eee9544c5e2db52f5db893)
| | * ReadOnly: update the documentation about readonly locksRonnie Sahlberg2011-09-011-2/+20
| | | | | | | | | | | | (This used to be ctdb commit 1a766382d7d774aa3444e07401575e51d3704dba)
| | * ReadOnly: add a new control to activate readonly lock capability for a database.Ronnie Sahlberg2011-09-018-29/+124
| | | | | | | | | | | | | | | | | | let all databases default to not support this until enabled through this control (This used to be ctdb commit 908a07c42e5135a3ba30a625fc4f4e4916de197a)
| | * ReadOnly: add a readonly flag to the getdbmap control and show the readonly ↵Ronnie Sahlberg2011-09-013-5/+17
| | | | | | | | | | | | | | | | | | setting in ctdb getdbmap output (This used to be ctdb commit 4cac9ad7d9c9ca657a247a6c215476399c7d2210)
| | * ReadOnly: Change the ctdb_db structure to keep a uint8_t for flags instead ↵Ronnie Sahlberg2011-09-015-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | of a boolean for the persistent flag. This is the same size as the original boolean but allows ut to add additional flags for the database (This used to be ctdb commit 7462761638d25880ad46024ad4ef21667eb99a98)
| | * LibCTDB : initialize ctdb->pnn to -1 when we create a new contextRonnie Sahlberg2011-08-231-0/+1
| | | | | | | | | | | | | | | | | | but before we learn the pnn of the local node (This used to be ctdb commit 8d363d3ce105b78c94f8e50184b6579b25b237f6)
| | * LibCTDB : change the ctdb_fetch_lock_once test tool to use libctdb instead ↵Ronnie Sahlberg2011-08-232-33/+57
| | | | | | | | | | | | | | | | | | of the old client (This used to be ctdb commit 231f16b3e0c9c44fc85c95bde7951ccfab50af91)
| | * LibCTDB : add support for getrecmodeRonnie Sahlberg2011-08-233-0/+95
| | | | | | | | | | | | (This used to be ctdb commit 0893fa0f3257f50d54896ffa78ec12ee11e8c6d2)
| | * ReadOnly: Check the readonly flag instead of whether the tdb pointer is NULL ↵Ronnie Sahlberg2011-08-234-2/+5
| | | | | | | | | | | | | | | | | | or not (This used to be ctdb commit 01314c2cb3a480917d6a632b83c39f0a48bba0e7)
| | * ReadOnly: add description of readonly recordsRonnie Sahlberg2011-08-231-0/+246
| | | | | | | | | | | | (This used to be ctdb commit a47ae3c2c81c62989bc99455459069149c853bbd)
| | * ReadOnly: clear out the tracking record once a revoke is completedRonnie Sahlberg2011-08-232-0/+8
| | | | | | | | | | | | (This used to be ctdb commit 7af255551f058d1f6bfdd38ca603e7a19d1bb7ba)
| | * ReadOnly: When the client wants a readwrite lock but the local node is the ↵Ronnie Sahlberg2011-08-231-0/+19
| | | | | | | | | | | | | | | | | | dmaster and also have delegations active we must send a CALL to the local daemon to trigger it to revoke the delegations (This used to be ctdb commit 1b7d42c3425e39dd2a1c4460e8a01fb1ea4a513c)
| | * ReadOnly: Change the update_record test tool to use the new fetchlock ↵Ronnie Sahlberg2011-08-231-3/+1
| | | | | | | | | | | | | | | | | | routine that can do either normal or readonly fetchlock (This used to be ctdb commit 6d5d79367f7d04e2a9a6ad5d8be70d609b764629)
| | * ReadOnly: Add a test tool that requests a readonly delegation in a loopRonnie Sahlberg2011-08-232-1/+140
| | | | | | | | | | | | (This used to be ctdb commit 72a6e77fe56a4a6d11b1d02fa049b6dd347ac0f1)
| | * ReadOnly: Add a test tool to fetch a record, requesting a readonly ↵Ronnie Sahlberg2011-08-232-1/+139
| | | | | | | | | | | | | | | | | | delegation and lock the record once (This used to be ctdb commit 29c77c249d0454057ce28003e018e126c7c01513)
| | * ReadOnly: Add clientside code to fetch readonly recordsRonnie Sahlberg2011-08-233-3/+212
| | | | | | | | | | | | (This used to be ctdb commit 6fccc902bce21fa6ff13ed08ee3341bbf8be39f2)
| | * ReadOnly: Add a ctdb_ltdb_fetch_readonly() helper functionRonnie Sahlberg2011-08-232-0/+37
| | | | | | | | | | | | (This used to be ctdb commit 8551420fb331dd2a897f4619278a981fcefb96e8)
| | * ReadOnly: Add handlign of readonly requests readwrite requests, delegations ↵Ronnie Sahlberg2011-08-231-0/+47
| | | | | | | | | | | | | | | | | | and revoking of delegation to the processing loop for CALL requests coming in from a local client via domain socket (This used to be ctdb commit e7cbf5b5d03cc26a73a92066a651f8eab73624b8)
| | * ReadOnly: Add processing for ReadOnly delegation requests and revoke ↵Ronnie Sahlberg2011-08-231-14/+116
| | | | | | | | | | | | | | | | | | | | | | | | requests to the processing loop for CALL packets we receive from different nodes. This implements the ReadOnly and ReadWrite request processing, delegation and revoking of delegations for all requests coming in across the network from a remote node. (This used to be ctdb commit 78f2c2ea70e6270cec59db7c3f174a511bf608a9)
| | * ReadOnly: Once recovery has finished, make sure to free all revoke child ↵Ronnie Sahlberg2011-08-231-0/+4
| | | | | | | | | | | | | | | | | | processes and trigger the destructors for all deferred calls to re-queue the original packets to the input packet processing function (This used to be ctdb commit 530a78aa05910beeca0867c4dbe226d4ce73f946)
| | * ReadOnly: When releasing all deferred calls that blocked during revoke of ↵Ronnie Sahlberg2011-08-231-1/+1
| | | | | | | | | | | | | | | | | | all previous delegations, add a 1 second grace/delay for any new readonly delegation requests so that the read-write fetch-lock porcess has a chance to make progress (This used to be ctdb commit 2a4e9e69850d64dd8aef695f587ebe04393a688f)
| | * ReadOnly: Add a new flag to call request packet to indicate that the client ↵Ronnie Sahlberg2011-08-231-1/+2
| | | | | | | | | | | | | | | | | | wants a readonly delegation (This used to be ctdb commit a3f54a556e97170eedf43708d58dd32446ca5840)
| | * ReadOnly: Add a function to start a revoke of all delegations for a record.Ronnie Sahlberg2011-08-232-0/+268
| | | | | | | | | | | | | | | | | | This triggers a child process to be created to perform the actual potentially blocking calls that are required. (This used to be ctdb commit 7d575ee92c95bc4aab78a33bc1aac7ff0811ab3a)
| | * ReadOnly: Add functions to register CALLs to a context used to handle ↵Ronnie Sahlberg2011-08-232-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | deferal of processing of CALL commands. Once the contexts are freed, the deferred calls are re-issued to the input packet processing functions again. This is needed when/if a CALL can not currently be processed by the main engine due to the record being locked down for revoking of all delegations. The data is passed through several layers of callbacks, and finally a timed event callback to ensure that the processing of the packet will be restarted again at the topmost eventloop, avoinding event loop nesting. (This used to be ctdb commit cc6f78efcfa3b8caeffbd68018e6dfbf81488dce)
| | * ReadOnly: Add an extra flag to ctdb_call_local to specify whether we want to ↵Ronnie Sahlberg2011-08-233-8/+12
| | | | | | | | | | | | | | | | | | write the record and header back to the tdb (for example we do when performing dmaster migrations) (This used to be ctdb commit b935e83255aeb3754b2fd37cf5611e02f7283514)
| | * ReadOnly: After recovering all databases, make sure to clear out the ↵Ronnie Sahlberg2011-08-231-0/+11
| | | | | | | | | | | | | | | | | | tracking database used to track delegations and revoke. This is because the recovery will implicitely result in a revoke of all delegations. (This used to be ctdb commit b5520933b9922d6af6f59f535824e1cdacb9f774)
| | * ReadOnly: Add "readonly" flag to the ctdb_db_context to indicate if this ↵Ronnie Sahlberg2011-08-232-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | database supports readonly operations or not. Add a private lock-less tdb file to the ctdb_db_context to use for tracking delegarions for records Assume all databases will support readonly mode for now and se thte flag for all databases. At later stage we will add support to control on a per database level whether delegations will be supported or not. (This used to be ctdb commit 502f86f79944df4bac9094f716e54110c511dc24)
| | * ReadOnly: After performing a recovery, clear out all flags related to ↵Ronnie Sahlberg2011-08-231-0/+5
| | | | | | | | | | | | | | | | | | readonly delegations and revoke (This used to be ctdb commit 9985a97e11688f3f688bb84e1180fd57c42077f4)
| | * Add the missing "persistent" argument to db_exist()Ronnie Sahlberg2011-08-231-1/+2
| | | | | | | | | | | | | | | | | | The API for this function has changed since the 1.2 branch where readonly locks are being merged from (This used to be ctdb commit d01b9716d3e50f4c6d102e8411f0401b0f499699)
| | * ReadOnly: Add a new command 'ctdb cattdb'. This fucntion differs from 'ctdb ↵Ronnie Sahlberg2011-08-231-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | catdb' in that 'cattdb' will always traverse the local tdb file only, while 'catdb' does a cluster traverse. Since some record flags may differ between nodes in the cluster when read only delegations are in use, cattdb is needed when you need to know the exact flag settings on the current node itself. (This used to be ctdb commit d2342b680a3a8160d903d12550b86ee21c8b277d)
| | * ReadOnly: Add printing of the record flags when we are traversing a database ↵Ronnie Sahlberg2011-08-231-0/+9
| | | | | | | | | | | | | | | | | | to print its content. (This used to be ctdb commit 5eaa9a8683babac27f9f0144ff4cb5364fcd54f6)
| | * ReadOnly: Add 4 new record flags to handle read only delegation and revoking ↵Ronnie Sahlberg2011-08-231-0/+4
| | | | | | | | | | | | | | | | | | of delegations (This used to be ctdb commit 875b0bede217547b51f02648b6a28a3c98b6b949)
| | * ReadOnly: add a new test tool that does a fetchlock on a record, then bunps ↵Ronnie Sahlberg2011-08-232-1/+165
| | | | | | | | | | | | | | | | | | the RSN by 10 and writes the new content to the record as sprintf("%d", rsn) (This used to be ctdb commit 151b25798f2a2c182fc9557c1c1ea0f3ef0ad3fe)
| | * ReadOnly: Add clientside functions to send the UPDATE_RECORD controlRonnie Sahlberg2011-08-232-0/+76
| | | | | | | | | | | | (This used to be ctdb commit 74a5b3d7bafd8827a4ee80095fde5798263821e4)
| | * ReadOnly: Add test tool to validate the functions to manipulate and ↵Ronnie Sahlberg2011-08-232-1/+142
| | | | | | | | | | | | | | | | | | enumerate the bitmap of nodes to where we have readonly delegations (This used to be ctdb commit bfdeda30ee0e359f06dd5714864f8beae22b0736)
| | * ReadOnly: Add helper functions to manipulate a TDB_DATA as a bitmap for ↵Ronnie Sahlberg2011-08-232-0/+51
| | | | | | | | | | | | | | | | | | nodes that we are tracking as having a readonly delegation (This used to be ctdb commit d10084e62d37674bb8d9e31d457fd23e050545be)